CSimpleStringT::GetString

 

Retrieves the character string.

PCXSTR GetString( ) const throw( );

A pointer to a null-terminated character string.

Call this method to retrieve the character string associated with the CSimpleStringT object.

System_CAPS_noteNote

The returned PCXSTR pointer is const and does not allow direct modification of CSimpleStringT contents.

Example

The following example demonstrates the use of CSimpleStringT::GetString.

CSimpleString str(pMgr);

str += _T("Cup soccer is best!");
_tprintf_s(_T("%s"), str.GetString());

Requirements

Header: atlsimpstr.h

Show: