LabWindows/CVI

cancel
Showing results for 
Search instead for 
Did you mean: 

Using C++-Code in LabWindows

Hi,
I want to use an existing C++-Code in LabWindows 5.0. I compiled the
C++-Code with
Borland C++-5.0 and I included the produced obj-file in my LabWindows
project.
I turned the compatibility mode to the Borland-Compiler, but I always
get a linker error
(Bad OMF record at ...)
0 Kudos
Message 1 of 2
(3,180 Views)
I think its obvious cvi won't accept an object file made by a c++ native
compiler since cvi can not handle with c++ code, the only thing you can do
is to 'hide' the c++ extentions in your borland code , define pure C functions
that will access the classes in the code and mark these functions as _dllexport
then make a dll of that code, then in the cvi program you won't access the
classes in the dll directly , instead you have to call the dll exported functions
0 Kudos
Message 2 of 2
(3,180 Views)