CSimpleStringT::Append
Visual Studio .NET 2003
Appends a CSimpleStringT object to an existing CSimpleStringT object.
void Append( const CSimpleStringT& strSrc ); void Append( PCXSTR pszSrc, int nLength ); void Append( PCXSTR pszSrc );
Parameters
- strSrc
- The CSimpleStringT object to be appended.
- pszSrc
- A pointer to a string containing the characters to be appended.
- nLength
- The number of characters to append.
Remarks
Call this method to append an existing CSimpleStringT object to another CSimpleStringT object.
Example
The following example demonstrates the use of CSimpleStringT::Append.
CSimpleString str1(pMgr), str2(pMgr);
str1.SetString("Soccer is");
str2.SetString(" an elegant game");
str1.Append(str2);
_ASSERT(strcmp(str1, "Soccer is an elegant game") == 0);
For another example, see the ISAPIFilter Sample.