I m trying to for a situation as below
My A.dll is loading B.dll and call it's function with pointer of the class object that present in A.dll as parameter to the loading function
Using that object reference can i call a function of A.dll from B.dll??
My B.dll function is as follows,
bool LogManagerThread::StartLogThread(void* AObj)
{
A* pobj;
pobj = (A*)AObj;
pobj->PrintTestMsg();
return true;
}
'A' is the class in A.dll
If i call this way I am getting linking error as "unresolved external symbol".. where PrintTestMsg() is the method in "class A" of A.dll
Error 11 error LNK2001: unresolved external symbol "public: void __thiscall A::PrintTestMsg(void)" (?PrintTestMsg@A@@QAEXXZ) D:\ilrewrite2\ConsoleApplication1\LogManager.obj LogManager