CSimpleStringT::GetString

Retrieves the character string.

PCXSTR GetString( ) const throw( );

Return Value

A pointer to a null-terminated character string.

Remarks

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

Nota

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

See Also

Reference

CSimpleStringT Class

CSimpleStringT::GetBuffer

Other Resources

CSimpleStringT Members