CString::operator <<, >>

Use the CString insertion (<<) operator for diagnostic dumping and storing to an archive.

Use the extraction (>>) operator for loading from an archive.

The CDumpContext operators are valid only in the Debug version of the MFC for Windows CE.

Syntax

friend CArchive& operator <<( CArchive& ar, const CString& string );
throw( CArchiveException );

friend CArchive& operator >>( CArchive& ar, CString& string );
throw( CArchiveException );

friend CDumpContext& operator <<( CDumpContext& dc, const CString& string );

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, CDumpContext