How can I print a variable in a Message Box?
How can I print a variable in a Message Box?
From MSDN
If the variable is a pointer to a string, then put it into the second param.....int MessageBox(
HWND hWnd, // handle of owner window
LPCTSTR lpText, // address of text in message box
LPCTSTR lpCaption, // address of title of message box
UINT uType // style of message box
);
If its say an int, you could use sprintf() to put it into a string....