LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

C++ classes

I'm using CVI 8.0.  From what I see the compiler is still a 'c' only compiler. Is this true.
 
I'd like to introduce some class (C++) functionality.  Is the only way to do this, through an external compiler????
 
 
Thanks,
MikeF
 
0 Kudos
Message 1 of 6
(3,853 Views)

This is true.  It is still compliant only with ANSI C.

The C++ additions are not compatible.

0 Kudos
Message 2 of 6
(3,832 Views)
Darn double print. (and it seems you can't delete a post....)

Message Edited by scomack on 03-02-2007 07:25 AM

0 Kudos
Message 3 of 6
(3,832 Views)

Hi MikeF,

There are also a couple other options for using C++ and CVI. See the following links for more information.

Is LabWindows/CVI a Compiler and What C Functions Can LabWindows/CVI Use? 
Does LabWindows/CVI Support C++? 
Integrating LabWindows/CVI with Microsoft Visual C++

 
Test Engineer - CTA
0 Kudos
Message 4 of 6
(3,818 Views)

Howdy Mikefr00,

If you have some C++ code that you would like called from LabWindows/CVI, one option could be to create a DLL out of the C++ code and then call it from C.  Check out 
Using Dynamic Link Libraries with LabWindows/CVI tutorial.  

Also, if your curoius about the CVI compiler, read the LabWindows/CVI Compiler KnowledgeBase.

Additionally, when mixing C and C++, I like to refer the How to mix C and C++ website. Its actually got some good information in it.

Hope this helps!

Best Regards,

Jonathan N.
National Instruments
Message 5 of 6
(3,815 Views)

Thanks for all of your replys!!!

 

 

Mikefr00

0 Kudos
Message 6 of 6
(3,796 Views)