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. How to Display the Value of a member varible in message box

How to Display the Value of a member varible in message box

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

    I'm working with VC++ MFC application .. I want to display a message box with value of a membervariable which i'm using in mi program.To do this whether i need to include any headerfile?.ifso please help me by giving the code or format as i'm a beginner.Anyone please help mi in this regard. Thanks in Advance, Saravana...

    I T 2 Replies Last reply
    0
    • S saravana001

      I'm working with VC++ MFC application .. I want to display a message box with value of a membervariable which i'm using in mi program.To do this whether i need to include any headerfile?.ifso please help me by giving the code or format as i'm a beginner.Anyone please help mi in this regard. Thanks in Advance, Saravana...

      I Offline
      I Offline
      Iain Clarke Warrior Programmer
      wrote on last edited by
      #2

      No header file needed. Message boxes only show strings, but there are plenty of ways to turn a (eg) number into a string. eg...

      CString s;
      s.Format ("%i", m_nMyMemberInteger);
      AfxMessageBox (s);

      Iain.

      1 Reply Last reply
      0
      • S saravana001

        I'm working with VC++ MFC application .. I want to display a message box with value of a membervariable which i'm using in mi program.To do this whether i need to include any headerfile?.ifso please help me by giving the code or format as i'm a beginner.Anyone please help mi in this regard. Thanks in Advance, Saravana...

        T Offline
        T Offline
        ThatsAlok
        wrote on last edited by
        #3

        look at wsprintf too!

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief

        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