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. Adding Dialog to mdi mfc app

Adding Dialog to mdi mfc app

Scheduled Pinned Locked Moved C / C++ / MFC
c++help
3 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.
  • O Offline
    O Offline
    os3omaha
    wrote on last edited by
    #1

    I have created a dialog and it's corresponding class, but when I call DoModal(), the dialog does not appear. DoModal returns -1, and GetLastError() returns 1812. I'm not sure what these codes mean, any help is appreciated. -Alan

    L G 2 Replies Last reply
    0
    • O os3omaha

      I have created a dialog and it's corresponding class, but when I call DoModal(), the dialog does not appear. DoModal returns -1, and GetLastError() returns 1812. I'm not sure what these codes mean, any help is appreciated. -Alan

      L Offline
      L Offline
      Lost User
      wrote on last edited by
      #2

      MSDN says error 1812 is: 1812 The specified image file did not contain a resource section. ERROR_RESOURCE_DATA_NOT_FOUND Artificial intelligence is no match for natural stupidity. Never argue with an idiot. They will drag you down to their level where they are an expert.

      1 Reply Last reply
      0
      • O os3omaha

        I have created a dialog and it's corresponding class, but when I call DoModal(), the dialog does not appear. DoModal returns -1, and GetLastError() returns 1812. I'm not sure what these codes mean, any help is appreciated. -Alan

        G Offline
        G Offline
        Gary R Wheeler
        wrote on last edited by
        #3

        Try using the "Error Lookup" application that comes with Visual Studio (it's also part of VC6). For 1812, it sounds like the resource for the dialog was not found. This can happen if you manually edit resource.h. Try doing a 'build all' ("rebuild solution" in VS.NET parlance).


        Software Zen: delete this;

        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