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. Dumping Derived CStatic Object

Dumping Derived CStatic Object

Scheduled Pinned Locked Moved C / C++ / MFC
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.
  • F Offline
    F Offline
    ForNow
    wrote on last edited by
    #1

    I have pointer to myderived CStatic object call mylabel Since Everything is derived from CObject I thought I could code the following dc << "Dumping my object << mylabel; dc is a type CDumpContext and I have afxTracEnabled = TRUE and yet I don't see the contents of mylabel in the output window

    D 1 Reply Last reply
    0
    • F ForNow

      I have pointer to myderived CStatic object call mylabel Since Everything is derived from CObject I thought I could code the following dc << "Dumping my object << mylabel; dc is a type CDumpContext and I have afxTracEnabled = TRUE and yet I don't see the contents of mylabel in the output window

      D Offline
      D Offline
      David Crow
      wrote on last edited by
      #2

      Can other objects be dumped? What is the value of _DEBUG? Does the following do anything different:

      mylabel->Dump(afxDump);

      "One man's wage rise is another man's price increase." - Harold Wilson

      "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

      "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

      F 1 Reply Last reply
      0
      • D David Crow

        Can other objects be dumped? What is the value of _DEBUG? Does the following do anything different:

        mylabel->Dump(afxDump);

        "One man's wage rise is another man's price increase." - Harold Wilson

        "Fireproof doesn't mean the fire will never come. It means when the fire comes that you will be able to withstand it." - Michael Simmons

        "You can easily judge the character of a man by how he treats those who can do nothing for him." - James D. Miles

        F Offline
        F Offline
        ForNow
        wrote on last edited by
        #3

        I get text for example m_hWnd = f:\vstools the directory in VS which has some of the MFC source code like wincore.cpp Is there any tool which would dump all the contents of an object for example m_hWnd = 0X0000456; I am sure you or the other developer must of done this would have you maybe have an example you can point me to thanks

        L 1 Reply Last reply
        0
        • F ForNow

          I get text for example m_hWnd = f:\vstools the directory in VS which has some of the MFC source code like wincore.cpp Is there any tool which would dump all the contents of an object for example m_hWnd = 0X0000456; I am sure you or the other developer must of done this would have you maybe have an example you can point me to thanks

          L Offline
          L Offline
          leon de boer
          wrote on last edited by
          #4

          As you know I only play with MFC limited but the windows api GetWindowText will return the text from a static window to a buffer. It will be in unicode or ansi depending on app and you deal with it as required.

          In vino veritas

          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