Export (0) Print
Expand All

Strings

Nearly all programs work with string data. Visual C++ provides several ways to manage this string data.

In This Section

String Data Management
Discusses using Unicode and MBCS with CString.
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.
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.
Memory Management and CStringT
Discusses memory management with CStringT, a template class used to manipulate variable-length character strings.
Unicode and Multibyte Character Set (MBCS) Support
Discusses how MFC is enabled for Unicode and MBCS support.

Related Sections

Adding Functionality
Provides links to topics describing conceptual information about the Visual C++ libraries and topics discussing various coding technologies and techniques.
CStringT Overview
Provides reference information about the shared CStringT class.
MFC
Provides conceptual and task-based topics to help you program using the MFC Library.
Show:
© 2014 Microsoft