Quantcast
Channel: NI TestStand topics
Viewing all articles
Browse latest Browse all 6730

How to instantiate objects from a MinGW C++ DLL ?

$
0
0

Hello,

 

I have developed a C++ Windows DLL with Eclipse / MinGW GCC; this DLL is an API exporting a lot of data object pointers like this:

mynamesapce::myAPI api;
myData * data = api.getAllData();
data->getName();
//and so on...

I need to import this DLL in NI TestStand 2014 and use all the data objects exported by this DLL.

I have inserted an Action in the Sequence Editor with a C/C++ Adapter and imported the DLL. Then, I can see the mangled names of all exported classes and methods.

But I don't know how to use these names to get my data objects.

I have read in the following Help: "Exporting Class Methods and Functions in Microsoft Visual Studio" 

"The C/C++ DLL Adapter does not allow you to call public non-static methods."

 

Does someone know if it is possible to use C++ DLL classes (notably compiled with MinGW GCC) ?

Thanks in advance for your answers.

 

Best regards,

Pascal

 


Viewing all articles
Browse latest Browse all 6730

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>