Export (0) Print
Expand All

Using CString 

The topics in this section describe programming using CString, which is the default implementation of the template class CStringT.

In This Section

Basic CString Operations

Describes basic CString operations, including creating objects from C literal strings, accessing individual characters in a CString, concatenating two objects, and comparing CString objects.

String Data Management

Discusses using Unicode and MBCS with CString.

CString Semantics

Explains how CString objects are used.

CString Operations Relating to C-Style Strings

Describes manipulating the contents of a CString object like a C-style null-terminated string.

Allocating and Releasing Memory for a BSTR

Discusses using memory for a BSTR and COM objects.

CString Exception Cleanup

Explains that explicit cleanup in MFC 3.0 and later is no longer necessary.

CString Argument Passing

Explains how to pass CString objects to functions and how to return CString objects from functions.

Unicode and Multibyte Character Set (MBCS) Support

Discusses how MFC is enabled for Unicode and MBCS support.

Reference

CStringT Class.

Provides reference information about the shared CStringT class.

See Also

Other Resources

Strings (ATL/MFC)

Community Additions

ADD
Show:
© 2014 Microsoft