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