_bstr_t::operator +=, +

Microsoft Specific

_bstr_t& operator+=( const _bstr_t& s1 ) throw( _com_error );

_bstr_t operator+( const _bstr_t& s1 ) const throw( _com_error );

friend _bstr_t operator+( const char* s2**, const _bstr_t&** s1 );

friend _bstr_t operator+( const wchar_t* s3**, const _bstr_t&** s1 );

Parameters

s1

a _bstr_t object

s2

a multibyte string

s3

a Unicode string

Remarks

These operators perform string concatenation:

  • operator+=( s1 )   Appends the characters in the encapsulated BSTR of s1 to the end of this object’s encapsulated BSTR.

  • operator+( s1 )   Returns the new _bstr_t which is formed by concatenating this object’s BSTR with that of s1.

  • operator+( s2**,** s1 )   Returns a new _bstr_t which is formed by concatenating a multibyte string s2, converted to Unicode, with the BSTR encapsulated in s1.

  • operator+( s3**,** s1 )   Returns a new _bstr_t which is formed by concatenating a Unicode string s3 with the BSTR encapsulated in s1.

_bstr_t Overview

END Microsoft Specific