LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Calling a constructor in a DLL from LV...

Hi All,

I am working with my own DLL, written in C++ in LabView 6i. I have written
a class and exposed the methods of an object, including the constructor, in
the DLL.

Can I / How do I call the constructor from LabView?

or.. Do I have to write everything (in the DLL) in procedural C++?

Thanks,
Bob
0 Kudos
Message 1 of 2
(2,459 Views)
Here is the reply the I got directly from ni support...

You will not be able to directly call your constructor from LabVIEW.
LabVIEW is unable to handle the creation of the class object since it has no
pointer to the class object that is created by the constructor and can't see
the member functions. A possibility for calling your DLL is to make it into
an ActiveX object.
LabVIEW can handle activeX objects, methods and properties and you can
implement your class object as a COM object.


"Bob Sublett" wrote in message
news:3a7f158b@newsgroups.ni.com...
> Hi All,
>
> I am working with my own DLL, written in C++ in LabView 6i. I have
written
> a class and exposed the methods of an object, including the constructor,
in
> the DLL.
>
> Can I / How do
I call the constructor from LabView?
>
> or.. Do I have to write everything (in the DLL) in procedural C++?
>
> Thanks,
> Bob
>
>
0 Kudos
Message 2 of 2
(2,459 Views)