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. AFX_MANAGE_STATE (AfxGetStaticModuleState ()) not working

AFX_MANAGE_STATE (AfxGetStaticModuleState ()) not working

Scheduled Pinned Locked Moved C / C++ / MFC
c++visual-studiocareer
4 Posts 3 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.
  • K Offline
    K Offline
    Karismatic
    wrote on last edited by
    #1

    Hi experts, I have a dll that uses MFC as shared dll and it has many dialogs in it & was working fine till the time the project was in VS 2002 but recently I have converted the VS 2002 project to VS 2008 project and now none of the dialog is showing up. So, could anyone please suggest whats going wrong.

    Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job

    K 1 Reply Last reply
    0
    • K Karismatic

      Hi experts, I have a dll that uses MFC as shared dll and it has many dialogs in it & was working fine till the time the project was in VS 2002 but recently I have converted the VS 2002 project to VS 2008 project and now none of the dialog is showing up. So, could anyone please suggest whats going wrong.

      Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job

      K Offline
      K Offline
      KingsGambit
      wrote on last edited by
      #2

      Can you debug an see what is causing the issue?

      K 1 Reply Last reply
      0
      • K KingsGambit

        Can you debug an see what is causing the issue?

        K Offline
        K Offline
        Karismatic
        wrote on last edited by
        #3

        DoModal is just returning -1 which means that DoModal is unable to create the dialog.

        Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job

        M 1 Reply Last reply
        0
        • K Karismatic

          DoModal is just returning -1 which means that DoModal is unable to create the dialog.

          Regards, Pankaj Sachdeva There is no future lies in any job but future lies in the person who holds the job

          M Offline
          M Offline
          Madhu Nair 0
          wrote on last edited by
          #4

          Karismatic wrote:

          DoModal is just returning -1 which means that DoModal is unable to create the dialog.

          Use GetLastError[^] to check the error code, it may give you some hints, hopefully.

          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