Calling a COM object in an MFC exe
-
Hi, I have an MFC application (exe) containing an ATL COM object (ATL support added to the project). that I want to be able to use from another application. I have created a proxy/stub dll and registered both in the registry but when I try to create an instance of the object it returns E_FAIL. What could I be doing wrong? Johannes
-
Hi, I have an MFC application (exe) containing an ATL COM object (ATL support added to the project). that I want to be able to use from another application. I have created a proxy/stub dll and registered both in the registry but when I try to create an instance of the object it returns E_FAIL. What could I be doing wrong? Johannes
Start from the top Have you called
if (!AfxOleInit())
return TRUE;from your MFC app (called from InitInstance) ?