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. Empty messages from MFC

Empty messages from MFC

Scheduled Pinned Locked Moved C / C++ / MFC
c++comtestingbeta-testingquestion
7 Posts 4 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.
  • D Offline
    D Offline
    Daniel Tak M
    wrote on last edited by
    #1

    While I usually try to avoid any message boxes that do not stem from my own code, I now am facing a box that comes from MFC, but the weird thing is that it is empty... which is not that helpful. I stumbled upon this a few times during testing, but never cared since I removed the various DDV_XXX functions later that caused those boxes. This only happens in Release build, which uses statically linked MFC, so I suppose it has something to do with that... Is there any way to get some more meaningful message boxes with statically linked MFC?

    http://www.renderpal.com http://www.shoran.de

    H L S 3 Replies Last reply
    0
    • D Daniel Tak M

      While I usually try to avoid any message boxes that do not stem from my own code, I now am facing a box that comes from MFC, but the weird thing is that it is empty... which is not that helpful. I stumbled upon this a few times during testing, but never cared since I removed the various DDV_XXX functions later that caused those boxes. This only happens in Release build, which uses statically linked MFC, so I suppose it has something to do with that... Is there any way to get some more meaningful message boxes with statically linked MFC?

      http://www.renderpal.com http://www.shoran.de

      H Offline
      H Offline
      Hans Dietrich
      wrote on last edited by
      #2

      Do you use custom DDV processing? Can you post the DDV code that causes this? What VS version?

      Best wishes, Hans


      [Hans Dietrich Software]

      D 1 Reply Last reply
      0
      • D Daniel Tak M

        While I usually try to avoid any message boxes that do not stem from my own code, I now am facing a box that comes from MFC, but the weird thing is that it is empty... which is not that helpful. I stumbled upon this a few times during testing, but never cared since I removed the various DDV_XXX functions later that caused those boxes. This only happens in Release build, which uses statically linked MFC, so I suppose it has something to do with that... Is there any way to get some more meaningful message boxes with statically linked MFC?

        http://www.renderpal.com http://www.shoran.de

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

        Daniel 'Tak' M. wrote:

        I now am facing a box that comes from MFC

        What do you mean by this? I don't think you will get random message boxes without writing some code.

        Daniel 'Tak' M. wrote:

        I stumbled upon this a few times during testing, but never cared

        Big mistake.

        I must get a clever new signature for 2011.

        1 Reply Last reply
        0
        • D Daniel Tak M

          While I usually try to avoid any message boxes that do not stem from my own code, I now am facing a box that comes from MFC, but the weird thing is that it is empty... which is not that helpful. I stumbled upon this a few times during testing, but never cared since I removed the various DDV_XXX functions later that caused those boxes. This only happens in Release build, which uses statically linked MFC, so I suppose it has something to do with that... Is there any way to get some more meaningful message boxes with statically linked MFC?

          http://www.renderpal.com http://www.shoran.de

          S Offline
          S Offline
          Stephen Hewitt
          wrote on last edited by
          #4

          I suggest you follow the tried and true and procudure of getting a stack trace when the problem occurs. You may want to alter the settings for the release build so that a pdb file is built (so you get a more meaningful stack).

          Steve

          D 1 Reply Last reply
          0
          • H Hans Dietrich

            Do you use custom DDV processing? Can you post the DDV code that causes this? What VS version?

            Best wishes, Hans


            [Hans Dietrich Software]

            D Offline
            D Offline
            Daniel Tak M
            wrote on last edited by
            #5

            No and no; the VS version is 2005. If I knew where exactly this errors pops ups, I'd be much further... I am also not sure if it is a DDV call, since I barely use them.

            http://www.renderpal.com http://www.shoran.de

            1 Reply Last reply
            0
            • S Stephen Hewitt

              I suggest you follow the tried and true and procudure of getting a stack trace when the problem occurs. You may want to alter the settings for the release build so that a pdb file is built (so you get a more meaningful stack).

              Steve

              D Offline
              D Offline
              Daniel Tak M
              wrote on last edited by
              #6

              My main problem is not to find out where it occurs, the main problem is why all warnings and errors from MFC are empty... It doesn't happen only this one time, it happens for every DDV call as well, for example, and I'd really prefer some more meaningful message boxes (crazy, I know). Is there, for example, a resource DLL that has to be shipped with my program so that MFC can load its error messages properly? Something like that...

              http://www.renderpal.com http://www.shoran.de

              H 1 Reply Last reply
              0
              • D Daniel Tak M

                My main problem is not to find out where it occurs, the main problem is why all warnings and errors from MFC are empty... It doesn't happen only this one time, it happens for every DDV call as well, for example, and I'd really prefer some more meaningful message boxes (crazy, I know). Is there, for example, a resource DLL that has to be shipped with my program so that MFC can load its error messages properly? Something like that...

                http://www.renderpal.com http://www.shoran.de

                H Offline
                H Offline
                Hans Dietrich
                wrote on last edited by
                #7

                Daniel 'Tak' M. wrote:

                Is there, for example, a resource DLL

                If you create a standard MFC app and choose the defaults, you will see that "afxres.rc" is included in the project's .rc file.

                Best wishes, Hans


                [Hans Dietrich Software]

                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