简体   繁体   中英

member functions of a C++ class and link to them explicitly through dll

I have to access member variable of a class inside a Dll, i have loaded the dll, but how to access the member variable of the class, i dn't want to use the virtual table concept used in COM. any input will be appreciable.

dllimport means the implementation will be imported :

class __declspec(dllimport) YourClass
{
   // ... declarations ...
};

Useful link:

HowTo: Export C++ classes from a DLL

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM