CString::GetBuffer

This method retrieves 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.

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

LPTSTR GetBuffer( int nMinBufLength ); throw( CMemoryException );

See Also

CString::GetBufferSetLength, CString::ReleaseBuffer