LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing to C code - Handle?

I need to create a LabView Interface to the following  'C' Call ....

Have you guys ever worked with passing Windows Handlers? 

extern "C" bool WINAPI ConnectDevice(HANDLE  hnd, USHORT VendorID, USHORT ProductID);

I'm using Labview 6.1

0 Kudos
Message 1 of 2
(2,551 Views)
A handle is a U32. Windows API functions require the stdcall calling convention, but I'm assuming it will work in your C case as well. Look here for more details (and note the links at the top of the page).

___________________
Try to take over the world!
0 Kudos
Message 2 of 2
(2,546 Views)