CSimpleStringT::SetString
Sets the string of a CSimpleStringT object.
void SetString(
PCXSTR pszSrc,
int nLength
);
void SetString(
PCXSTR pszSrc
);
Parameters
pszSrc
A pointer to a null-terminated string.nLength
A count of the number of characters in pszSrc.
Remarks
Call this method to reinitialize the buffer of a CSimpleStringT object with a new string.
Example
The following example demonstrates the use of CSimpleStringT::SetString.
CSimpleString s(_T("abcdef"), pMgr);
ASSERT(_tcscmp(s, _T("abcdef")) == 0);
s.SetString(_T("Soccer"), 6);
ASSERT(_tcscmp(s, _T("Soccer")) == 0);
Requirements
Header: atlsimpstr.h