LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Will Mocrosoft C/C++ Header file(s) work in LabWindows/CVI?

Is there a way to get Microsoft based Header(s) files to compile in LabWIndows/CVI.  It appears that LabWindows/CVI does not like the words "BOOLEAN" or "HANDLE" in the header file for an example?
 
Is there a switch that I need to set in LabWindows ENVR to accept this MS C/C++ Header files?
0 Kudos
Message 1 of 3
(4,278 Views)
HANDLE is defined in cvidef.h as a pointer to void.  cvidef.h gets pulled in with most any CVI header file, such as utility.h or userint.h.  Or just include cvidef directly. 

BOOLEAN isn't a defined type in CVI but BOOL is defined as an int, also in cvidef.h.

If you're using windows.h, include that before any of the CVI header files.

Menchar


0 Kudos
Message 2 of 3
(4,276 Views)
Menchar, thanks it worked.  I am off on CVI Data Types at 8:36 pm.. 
0 Kudos
Message 3 of 3
(4,262 Views)