<sd******@hotmail.com> wrote in message
news:bk********************************@4ax.com...
How do I display the integer in pt.x in a message box?
I get a error on parameter 2 of MessageBox call:
char str[255];
sprintf(str,"point x is %d",pt.x);
MessageBox(NULL,str,NULL,MB_OK);
Probably:
TCHAR str[255];
_stprintf(str, _T("point x is %d"), pt.x);
MessageBox(0, str, 0, MB_OK);
If you're compiling with Unicode support MessageBox is a macro to the
Unicode MessageBoxW.
Make sure to include the correct headers (you can find them on MSDN), and
please direct further Windows questions to
comp.os.ms-windows.programmer.win32.
- Pete