Can anyone help me to correct this code:
char szBuff[64]; sprintf(szBuff, \"%p\", m_hWnd); MessageBox(NULL, szBuff, L\"Test print handler\", MB_O
If you are compiling with UNICODE, make all the strings you work with double width - i.e. define them as wchar_t*.
UNICODE
wchar_t*
If you really must convert ASCII to Unicode, use ATL conversion macros.