I have a wide-character XML message that I need to send over a Win32 socket in C++.
TCHAR wszBuffer[1024];
Should I sprintf(szSendBuffer, "%S", wszBuffer)
the wide character buffer to a char
array before sending it?
What is the correct way to send this?