Multifunction DAQ

cancel
Showing results for 
Search instead for 
Did you mean: 

How to pass a class pointer to call library function

Hello,

I have written a dll in c++. I want to pass a pointer to class to call library function of labview. Can anyone guide me how can I perform this function!

Thanks & regards,

Maithili
0 Kudos
Message 1 of 3
(2,370 Views)
Maithili,

You will need to get the class pointer from the DLL first as a value, then pass it back in. You cannot just generate a pointer value in the LabVIEW execution system and expect it to work in the DLL execution system. Remember, the pointer is just an I32 value.

Another thing you could try is to have a wrapper DLL that can store that information and pass it to your original DLL.

Randy Hoskin
Applications Engineer
National Instruments
http://www.ni.com/ask
0 Kudos
Message 2 of 3
(2,370 Views)
Hello,

Thanks a lot for the answer. I will try wraper dll. Basically I want to read data from TDC-PCI card. This is a dll came with card i.e. daq.dll. It needs various class pointers to pass to it. Do you have any other suggestion through which I can read the data!

Thanks & Regards,

Maithili
0 Kudos
Message 3 of 3
(2,370 Views)