LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

LV and MSVC C++ objects??

I've heard that either DLLs cannot contain objects, or if they
can that the DLLs with objects cannot be used with LabVIEW.
Either way, it makes what I need to do much more difficult.
I have some HUGE existing C++ code that I need to use with
a LabVIEW DAq VI. The VI itself will be quite substantial.

Does anyone any suggestions on how to approach my problem.
I would very much prefer not re-coding the C++ stuff into
C or FORTRAN or anything else if I can avoid it.

Thanks in advance.
Dave Karon
Engineering Associate
Concepts ETI, Inc.
0 Kudos
Message 1 of 2
(2,364 Views)
David Karon wrote:

> I've heard that either DLLs cannot contain objects, or if they
> can that the DLLs with objects cannot be used with LabVIEW.
> Either way, it makes what I need to do much more difficult.
> I have some HUGE existing C++ code that I need to use with
> a LabVIEW DAq VI. The VI itself will be quite substantial.
>
> Does anyone any suggestions on how to approach my problem.
> I would very much prefer not re-coding the C++ stuff into
> C or FORTRAN or anything else if I can avoid it.
>
> Thanks in advance.
> Dave Karon
> Engineering Associate
> Concepts ETI, Inc.

I would suggest you go here
http://zone.ni.com/devzone/devzone.nsf/webcategories/E2A99E7E10D5725D862567AC004F0A53?opendocument

and look at this info. If the link is mangled go to the zone.
ni.com select
resource library , labview , connectivity

DLLs can contain objects that is no problem, I don't think that a DLL with
objects is all that much
trouble for labview either. (not sure my C++ is limited) I do know that in
order to call functions from
C++ code it has to be defined as extern C . This stops the name decoration
but also removes the
ability to have polymorphic functions.

Hope this helps some
Kevin Kent
0 Kudos
Message 2 of 2
(2,364 Views)