I have an ATL COM Exe with many interfaces. Every time I try to start my COM server I get an error.
If I use this method:
My HRESULT value is 0x80080005 (Server execution failed)Code:CComPtr<IContextManager> icm; hr = icm.CoCreateInstance(__uuidof(CContextManager));
If I use this method:
My HRESULT value is 0x80040154 (Class not registered)Code:IContextManager *icm; hr = CoCreateInstance(CLSID_CContextManager, NULL, CLSCTX_INPROC_SERVER, IID_IContextManager, reinterpret_cast<void**>(&icm));
I have tried running regsvr32 with the exe and I don't receivie any errors, but I still get the above errors when attempting to run the executable. Also, I do see the values stored in the registry correctly so I am confused as to what might be going on.
Any help is greatly appreciated!
Thank you.




Reply With Quote