Possible Duplicate:
Calling private method in C++
I have a DLL, and in that DLL they exposed some functions but one of them is private. The function is C_MORPHO_Device::InitUsbDevicesNameEnum(PUL o_pul_NbUsbDevice).
How can I call this InitUsbDevicesNameEnum function in my application?
Is the private method also exported? I doubt it (why would they export a private method?). But if it is exported, you can use the dumpbin /exports command to see the decorated method name, then use GetProcAddress to get a function pointer to the method and call on an instance of the class. Something like: