LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

How do I include .cpp and associated .h file in LabWindows/CVI 7.0 project?

I would like to be able to use Visual C++ code written by someone else in my LabWindows/CVI project. Is there some way I can use or 'import' the .cpp and it's associated .h files rather than rewriting the the code from C++ to C? I've seen the discussions about importing C++ dll's, (use extern "C"{ }) does this also apply to .cpp's?
Thanks,
Peggy
0 Kudos
Message 1 of 2
(2,751 Views)
Hi Peggy,
You can just compile your .cpp to a DLL using Visual C++ and then call it from CVI. Other than rewriting it in C I don't know of any way to directly import a .cpp file.

Regards,
Ryan K.
0 Kudos
Message 2 of 2
(2,751 Views)