| title | _bstr_t::operator +=, + | Microsoft Docs | |||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| ms.custom | ||||||||||||||
| ms.date | 11/04/2016 | |||||||||||||
| ms.reviewer | ||||||||||||||
| ms.suite | ||||||||||||||
| ms.technology |
|
|||||||||||||
| ms.tgt_pltfrm | ||||||||||||||
| ms.topic | language-reference | |||||||||||||
| f1_keywords |
|
|||||||||||||
| dev_langs |
|
|||||||||||||
| helpviewer_keywords |
|
|||||||||||||
| ms.assetid | d28316ce-c2c8-4a38-bdb3-44fa4e582c44 | |||||||||||||
| caps.latest.revision | 6 | |||||||||||||
| author | mikeblome | |||||||||||||
| ms.author | mblome | |||||||||||||
| manager | ghogen | |||||||||||||
| translation.priority.ht |
|
Microsoft Specific
Appends characters to the end of the _bstr_t object or concatenates two strings.
_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
);
s1
A _bstr_t object.
s2
A multibyte string.
s3
A Unicode string.
These operators perform string concatenation:
-
operator+=( s1 ) Appends the characters in the encapsulated
BSTRof s1 to the end of this object's encapsulatedBSTR. -
operator+( s1 ) Returns the new
_bstr_tthat is formed by concatenating this object'sBSTRwith that of s1. -
operator+( s2 | s1 ) Returns a new
_bstr_tthat is formed by concatenating a multibyte string s2, converted to Unicode, with theBSTRencapsulated in s1. -
operator+(
s3, s1 ) Returns a new_bstr_tthat is formed by concatenating a Unicode strings3with theBSTRencapsulated in s1.
END Microsoft Specific