I have an application exe and COM dll.
- In Exe I have like this :
class CMyExeApp : public CWinApp
CMyObject * m_pMyObject;
virtual BOOL InitInstance();
extern CMyExeApp theApp;
All works fine between the Exe and the COM dll.
What I need is to get the instance of Class CMyExeApp (theApp) to get the reference to m_pMyObject IN THE DLL
I tried this in Dll :
HMODULE hModule = GetModuleHandle(CURRENT_EXE_NAME);
but i didn't know what i do after
any help please