AfxMessageBox
-
hi, We use AfxMessageBox to display a string in a dialogbox. How can we display an int data type in a dialogbox. Thanks in advance, Tejaswini
-
hi, We use AfxMessageBox to display a string in a dialogbox. How can we display an int data type in a dialogbox. Thanks in advance, Tejaswini
what about formatting a string and calling AfxMessgeBox with the string ?
int i = 42;
CString s;
s.Format( "The is an integer : %i", i );
AfxMessageBox( s );
Maximilien Lincourt Your Head A Splode - Strong Bad
-
hi, We use AfxMessageBox to display a string in a dialogbox. How can we display an int data type in a dialogbox. Thanks in advance, Tejaswini
You can use
CString::Format
or useitoa
_**
**_
whitesky
-
hi, We use AfxMessageBox to display a string in a dialogbox. How can we display an int data type in a dialogbox. Thanks in advance, Tejaswini
tejaswini.g wrote:
We use AfxMessageBox to display a string in a dialogbox. How can we display an int data type in a dialogbox.
wsprintf can help 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 and You