Windows Sockets: Convert strings

Source: Internet
Author: User

This article and two other related articles explain some issues in Windows Sockets programming. This document describes how to convert strings. Other problems are described in Windows Sockets: blocking and Windows Sockets: byte sorting.

If you use the CAsyncSocket class or derive from it, you need to manage these issues on your own. If you use a CSocket class or derive from it, it is managed by MFC. Conversion string

If communication is performed between applications that use strings stored in different wide character formats (such as Unicode or multi-Byte Character Set MBCS, or you must useCAsyncSocketManage the conversion by yourself. AndCSocketObjects used togetherCArchiveThe object manages the conversion through the function of the CString class. For more information, see the Windows Sockets specification in Platform SDK.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.