title: Sending TCHAR buffer with send(sock, wszBuffer, ...)?
body: <p>I have a wide-character XML message that I need to send over a Win32 socket in C++.</p>
  
  <pre><code>TCHAR wszBuffer[1024];
  </code></pre>
  
  <p>Should I <code>sprintf(szSendBuffer, "%S", wszBuffer)</code> the wide character buffer to a <code>char</code> array before sending it?</p>
  
  <p>What is the correct way to send this?</p>