LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I create an import library from a C++ header file with classes

Can I create an import library in CVI from a C++ header file with classes?
0 Kudos
Message 1 of 2
(3,200 Views)
Hi DeathDog,

LabWindows/CVI can only generate import libraries for third-party C-style DLLs, provided you have the header .h file for the DLL. 
The concept to remember is that CVI is a ANSI C compiler. Thus you need to ensure that you make your C++ libraries, DLLs, and header files are C compliant. By that I mean for example, is that you cannot use C++ libraries with the CVI compiler without creating a DLL and exporting unmangled C style functions (using extern "C"). If you have any C++ classes, you need to create C style wrappers around them if you want to use them in CVI.

Additionally, check out another post here that I responded to which has some great links to tutorials and knowledgebases.

Best Regards,
Jonathan N.
National Instruments
0 Kudos
Message 2 of 2
(3,192 Views)