views:

222

answers:

1

Hello

I have created the ATL COM Server C++ project using Visual Studio 2005 wizard. I added a new COM class using the ATL Simple Object wizard. Now when I try to create this COM class instance from my server (calling CoCreateInstance within the ATL server) I get CO_E_SERVER_EXEC_FAILURE error from CoCreateInstance. When I try to create this object from other project (other Win32 executable), the object gets created correctly. What may be the reason of this error?

Regards Dominik Tomczak

+1  A: 

There's an excellent blog post available here that discusses the reasons you can get this HRESULT.

Hans Passant