Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. ATL / WTL / STL
  4. Server execution failed in MFC COM

Server execution failed in MFC COM

Scheduled Pinned Locked Moved ATL / WTL / STL
c++comsysadmintestingtools
2 Posts 2 Posters 5 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hydera
    wrote on last edited by
    #1

    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(); } }

    A 1 Reply Last reply
    0
    • H Hydera

      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(); } }

      A Offline
      A Offline
      achal3754
      wrote on last edited by
      #2

      Check the even log for the details.

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups