Note that this is portable between ANSI and Unicode through the use of TCHAR/_stprintf, if this is not necessary you could just use wchar_t/swprintf or char/sprintf.
Clifford
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
How I use a int number in a MessageBox?
I used
MessageBox(hwnd, MAKEINTRESOURCE(ID_NUMBER), "Number", 0);
but it didn't work...
can anyone tell me how is? or there is another function?
Thanks!!!
TCHAR message[255] ;
_stprintf( message, "%d", ID_NUMBER ) ;
MessageBox(hwnd, message, "Number", 0) ;
Note that this is portable between ANSI and Unicode through the use of TCHAR/_stprintf, if this is not necessary you could just use wchar_t/swprintf or char/sprintf.
Clifford