LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

WinAPI CallBack functions

Does CVI support WinAPI CallBack functions?

 

I am using a vendor's API, wherein, one call is using

this form:

 

void __stdcall GrabFrame_CallBackEx(LPVOID lpUserData, VCECLB_FrameInfoEx* pFrameInfo)
{
   // Process incoming frame
}
...
VCECLB_StartGrabEx(hDevice, nPort, 0, &GrabFrame_CallBackEx, NULL);

 

Thanx.

 

CSK

0 Kudos
Message 1 of 2
(3,745 Views)
CVI do support windows API callbacks. the __stdcall keyword is recognized and fully supported. if all parameter types are standard C structures (not C++ classes) then everything should be fine.
0 Kudos
Message 2 of 2
(3,722 Views)