Windows Sockets: Converting Strings
For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.
This article and two companion articles explain several issues in Windows Sockets programming. This article covers converting strings. The other issues are covered in Windows Sockets: Blocking and Windows Sockets: Byte Ordering.
If you communicate between applications that use strings stored in different wide-character formats, such as Unicode or multibyte character sets (MBCS), or between one of these and an application using ANSI character strings, you must manage the conversions yourself under
CArchive object used with a
CSocket object manages this conversion for you through the capabilities of class CString. For more information, see the Windows Sockets specification, located in the Windows SDK.
For more information, see: