CString::GetBuffer

Call this member function to retrieve a pointer to the internal character buffer for the CString object. The returned LPTSTR is not const and thus allows direct modification of CString contents.

Syntax

LPTSTR GetBuffer( int nMinBufLength );
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 Member Functions, Simple Value Types, CString::GetBufferSetLength, CString::ReleaseBuffer