CString::operator +=

Use this concatenation operator to add 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.

Syntax

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

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

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

At a Glance

Header File Afx.h
Platforms
Versions 1.0 and later
Complete documentation Visual C++ documentation

See Also

CString Overview, CString Operators, Simple Value Types, CString::operator +