LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Can I add C++ classes to a CVI project?

I want to add a C++ library (Borland C++) to a CVI project. What is the best way to do it?
0 Kudos
Message 1 of 2
(2,901 Views)
CVI is a C compiler, not C++. You can't add C++ code into CVI. We are compatible with Borland C++ object code, but it has to be C code or the functions have to be extern "C" to be callable from CVI. You could build the code into a DLL in Borland and provide C-style functions to instantiate and access the class in the DLL.

Best Regards,

Chris Matthews
National Instruments
Message 2 of 2
(2,901 Views)