다음을 통해 공유


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.

참고

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

Concepts

CSimpleStringT Class

CSimpleStringT Members

CSimpleStringT::GetBuffer