CString::operator +=

This concatenation operator adds characters onto the end of this string. The operator accepts another CString object, a character pointer, or a single character. You should be aware that memory exceptions may occur whenever you use this concatenation operator because new storage may be allocated for characters added to this CString object.

At a Glance

Header file: Afx.h
Platforms: H/PC 2.0, Palm-size PC, H/PC Pro
Windows CE versions: 1.0 and later
Complete documentation: Visual C++ documentation

Syntax

const CString& operator +=( const CString& string );
throw( CMemoryException );

const CString& operator +=( TCHAR ch ); throw( CMemoryException );

const CString& operator +=( LPCTSTR lpsz ); throw( CMemoryException );

See Also

CString::operator +