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. C / C++ / MFC
  4. domodal crashing -- solution please.

domodal crashing -- solution please.

Scheduled Pinned Locked Moved C / C++ / MFC
c++learning
1 Posts 1 Posters 0 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.
  • E Offline
    E Offline
    ERLN
    wrote on last edited by
    #1

    I have created MFC dialog in MFC extention DLL. That Dialog is created and displaed successfully using domodal in win32 console application with mfc support and also successfully executed with mfc appwizard executable. Now I have created Office Add-in using the sample of Comaddin. There I am calling the same MFC Extension based dialog in that but is crashing after calling domodal. I tried to setting the resource handle and instance handle before calling domodal. Dialog is showing within few seconds it is crashing. After debugging i got the assertion in the following line. if (!AfxGetThread()->PumpMessage()) The above line from CWnd::RunModalLoop function. This is from default MFC

    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