Export (0) Print
Expand All

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.

Note Note

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

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

CSimpleString str(pMgr);

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

Header: atlsimpstr.h

Show:
© 2014 Microsoft