10-06-2006 04:38 AM
void GetReceiveEvent(int handle, HANDLE *hevent);
The first handle is the handle of the hardware. The second (returned) handle "*hevent" is a Window handle for a callback function, which I could receive when an event of the hardware occurs. How could I create a LabWindows/CVI (7.0) callback function using the window handle or how could I link a defined LW/CVI callback function to this handle?
Best regards
10-06-2006 07:24 AM
10-09-2006 04:37 AM
mvr,
I haven't understood, what you were meaning with "post the definition of HANDLE from the header file for the dll". HANDLE is define as "typedef void" and there is no function in the header file, which describes any callback function.
The only chance to solve the problem seems to be the Win SDK function "WaitForSingleObject" or "WaitForMultipleObjects" in a while loop (endless loop). I don't like endless loops.
I was expecting a CVI function, which creates a callback function like "InstallCallback" with a parameter corresponding to the Window handle.
rgds
10-09-2006 07:34 AM - edited 10-09-2006 07:34 AM
Message Edited by mvr on 10-09-2006 07:35 AM