หมายเหตุ
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลอง ลงชื่อเข้าใช้หรือเปลี่ยนไดเรกทอรีได้
การเข้าถึงหน้านี้ต้องได้รับการอนุญาต คุณสามารถลองเปลี่ยนไดเรกทอรีได้
Microsoft Specific
Appends characters to the end of the _bstr_t object, or concatenates two strings.
Syntax
_bstr_t& operator+=( const _bstr_t& s1 );
_bstr_t operator+( const _bstr_t& s1 );
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 encapsulatedBSTRofs1to the end of this object's encapsulatedBSTR.operator+( s1 )Returns the new_bstr_tthat's formed by concatenating this object'sBSTRand the one ins1.operator+( s2, s1 )Returns a new_bstr_tthat's formed by concatenating a multibyte strings2, converted to Unicode, and theBSTRencapsulated ins1.operator+( s3, s1 )Returns a new_bstr_tthat's formed by concatenating a Unicode strings3and theBSTRencapsulated ins1.
END Microsoft Specific