LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

"using c++ in cvi, lib exist?"

I have heard in the past that there is a lib that I can include in my build to be able to declare and use classes. I want to write the majority of my functions in C++. I am not talking about VC++.
0 Kudos
Message 1 of 3
(3,130 Views)
CVI is an ANSI C compiler. You cannot use C++ libraries with an CVI C compiler without creating a DLL and exporting unmangled C style functions (using extern "C"). Basically, you will need to create C style wrappers around your C++ class if you want to use them from CVI. There is no library that will automatically do that for you.

If you create an ActiveX library though, CVI provides tools that will auto-generate CVI wrapper functions for the library. This is the ActiveX controller Wizard feature in CVI.

Hope this helps
Bilal Durrani
NI
Message 2 of 3
(3,114 Views)
Hi Bilal,

That's basically how we did it (using extern & wrapper).
Worked well with Borland C++.

😄
0 Kudos
Message 3 of 3
(3,092 Views)