LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

using dll class based

hie
i am trying to use a dll based on c++ programing using  classes.
the only functiones that i can  see / rich  are the ones outside the class .
 
why ?
how can i rich the ones that are inside it ?
 
i have the cpp and the  h files . can i use them insted ?
regards
zivmer
0 Kudos
Message 1 of 2
(3,261 Views)


@zivmer wrote:
hie
i am trying to use a dll based on c++ programing using  classes.
the only functiones that i can  see / rich  are the ones outside the class .
 
why ?
how can i rich the ones that are inside it ?
 
i have the cpp and the  h files . can i use them insted ?
regards
zivmer


You can't. LabVIEW's Call Library Node can only access global C style functions exported through the DLL export table. C++ functions are normally not exported at all but instead accessed through the method table of an object. Since the C++ binary interface is compiler dependant supporting such an interface would be very difficult for LabVIEW.

Your options are to use ActiveX instead, if your dll supports that, or write a standard C wrapper library that translates the C object methods into standard C function calls and export them from your DLL.

Rolf Kalbermatter

Rolf Kalbermatter  My Blog
DEMO, Electronic and Mechanical Support department, room 36.LB00.390
Message 2 of 2
(3,242 Views)