0
votes

I have a class in a dll, which creates a thread for it. The functions that are exported from the dll should call the member functions of an object of the class. How would I make this happen?

I tried putting a global variable of the class in the .cpp file of the dll, and then make the exported functions call the member functions of that object, but with no use.

This is in Visual studio 2010 C++, and the dll is explicitly linked.

1
Did you export the class as well?Satish
You mean exporting the class and then getting an object of the class in the main thread?Nooobody
But then I need to include the header file for the class, no?Nooobody
Yes you have to. Including header any problem? Unless you have header you cannot create the object of that class.Satish

1 Answers