LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

using a C++ dll(with classes)in CVI

Hi,
I actually have a dll containing classes (dll from Visual Studio.NET). How can call functions contained in these classes with CVI7.1?
Thanks a lot for help
Arnaud2404
0 Kudos
Message 1 of 2
(3,094 Views)
Since CVI is an ANSI C compiler, you can't directly call any functions that require classes as parameters or that require you to instantiate a class before you can call a member function. The DLL functions may use classes internally, as long as the class is not your interface to the function. Many DLLs written with classes export C wrapper functions that can be called from a C compiler. If your doesn't, you'll have to use Visual Studio.Net to create your own wrapper functions. Those functions must pass all parameters acceptable to ANSI C, but may use classes internally.
0 Kudos
Message 2 of 2
(3,094 Views)