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. Display value of member in 'Variable' window

Display value of member in 'Variable' window

Scheduled Pinned Locked Moved C / C++ / MFC
c++question
5 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.
  • B Offline
    B Offline
    Bartosz Lizak
    wrote on last edited by
    #1

    Hello all, as I mentioned I would like to display one (specified by me) member value of some class. You can observe this for MFC objects - e.g. CWnd displays value of m_hWnd in curly brackets. I looked into definitions of some MFC classes (CWnd and CString) and didn't see anything 'magic'. Does anybody know something about it? Regards Bartek

    C T 2 Replies Last reply
    0
    • B Bartosz Lizak

      Hello all, as I mentioned I would like to display one (specified by me) member value of some class. You can observe this for MFC objects - e.g. CWnd displays value of m_hWnd in curly brackets. I looked into definitions of some MFC classes (CWnd and CString) and didn't see anything 'magic'. Does anybody know something about it? Regards Bartek

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      You mean in the debugger ? Just type it into the debug variable window. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

      B 1 Reply Last reply
      0
      • C Christian Graus

        You mean in the debugger ? Just type it into the debug variable window. Christian As I learn the innermost secrets of the around me, they reward me in many ways to keep quiet. Men with pierced ears are better prepared for marriage. They've experienced pain and bought Jewellery.

        B Offline
        B Offline
        Bartosz Lizak
        wrote on last edited by
        #3

        Hmmm, I wrote bad topic ;-) It's not so trivial ... I want to display value of specifed member while in 'Variable' window an object of the class containing this member is listed. For example: +this 0x00432990 {CManagersView hWnd=0x004604e6} Class CManagersView is derrived from CView and automatically displays it's 'primary' member - m_hWnd. Regards Bartek

        1 Reply Last reply
        0
        • B Bartosz Lizak

          Hello all, as I mentioned I would like to display one (specified by me) member value of some class. You can observe this for MFC objects - e.g. CWnd displays value of m_hWnd in curly brackets. I looked into definitions of some MFC classes (CWnd and CString) and didn't see anything 'magic'. Does anybody know something about it? Regards Bartek

          T Offline
          T Offline
          Tomasz Sowinski
          wrote on last edited by
          #4

          autoexp.dat located in \common\msdev98\bin contains the 'magic'. Tomasz Sowinski -- http://www.shooltz.com

          B 1 Reply Last reply
          0
          • T Tomasz Sowinski

            autoexp.dat located in \common\msdev98\bin contains the 'magic'. Tomasz Sowinski -- http://www.shooltz.com

            B Offline
            B Offline
            Bartosz Lizak
            wrote on last edited by
            #5

            That's it! Thanks a lot ;-) Regards Bartek

            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