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
Since your tag suggests VC++, I am suggesting CString. If yes, then the following snippet will also work for your case:
CString szBuff; szBuff.Format(_T("%p"), m_hWnd); MessageBox(NULL, szBuff, L"Test print handler", MB_OK);