1 out of 2 rated this helpful - Rate this topic

CSimpleStringT::Append

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.

See Also

CSimpleStringT Overview | Class Members | AppendChar

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.