title: Print HWND to messagebox
body: <p>How to print HWND value to MessageBox in visual c++?</p>
  
  <p>Update:</p>
  
  <p>I tried to print the handle ID to a messagebox, but instead it appears with Chinese characters. Here's the code I'm working on ..</p>
  
  <pre><code>        char szBuff[64];
          sprintf(szBuff, "%p", m_hWnd);
          MessageBox(NULL, LPCWSTR(szBuff), L"Test print handler", MB_OK);
  </code></pre>