CComBSTR::operator +=

CComBSTR& operator +=( const CComBSTR& bstrSrc );

Remarks

Appends the BSTR member of bstrSrc to m_str.

Example

//need for conversion macro OLE2T, atlconv.h may need to be included
USES_CONVERSION;
CComBSTR bstrPre("Hello ");
CComBSTR bstrSuf("World!");

//Appends "World!" to "Hello "
bstrPre += bstrSuf;

//Displays a message box with text "Hello World!"
::MessageBox(NULL, OLE2T(bstrPre), NULL, MB_OK);

CComBSTR OverviewClass Members

See Also   CComBSTR::Append, CComBSTR::AppendBSTR