Server execution failed in MFC COM
-
I have added dual interfaces to an existing class in MFC application but when i run the client the cocreateinstance is failing with the error 0x80080005 (CO_E_SERVER_EXEC_FAILURE) Server execution failed. I had followed the steps from the articles below:- http://www.codeproject.com/Articles/8202/Adding-automation-to-MFC-applications. https://msdn.microsoft.com/en-us/library/4h56szat.aspx\[^\] Hide Copy Code hr = ::CoCreateInstance(CLSID_Application, NULL, CLSCTX_LOCAL_SERVER, IID_IApplication, (void**)&m_IApplication); if (SUCCEEDED(hr)) { if (m_IApplication) { m_IApplication->Show(); } }
-
I have added dual interfaces to an existing class in MFC application but when i run the client the cocreateinstance is failing with the error 0x80080005 (CO_E_SERVER_EXEC_FAILURE) Server execution failed. I had followed the steps from the articles below:- http://www.codeproject.com/Articles/8202/Adding-automation-to-MFC-applications. https://msdn.microsoft.com/en-us/library/4h56szat.aspx\[^\] Hide Copy Code hr = ::CoCreateInstance(CLSID_Application, NULL, CLSCTX_LOCAL_SERVER, IID_IApplication, (void**)&m_IApplication); if (SUCCEEDED(hr)) { if (m_IApplication) { m_IApplication->Show(); } }