title: print TCHAR[] on console
body: <p>I'm quite sure that it is a stupid issue but it drives me crazy..</p>
  
  <p>how could i print on the console a TCHAR array?</p>
  
  <pre><code>DWORD error = WSAGetLastError();
  TCHAR errmsg[512];
  int ret = FormatMessage(FORMAT_MESSAGE_FROM_SYSTEM, 0, error, 0, errmsg, 511, NULL);
  </code></pre>
  
  <p>i need to print errmsg...</p>