_bstr_t::operator =
Microsoft Specific
Assigns a new value to an existing _bstr_t
object.
Syntax
_bstr_t& operator=(const _bstr_t& s1) throw ( );
_bstr_t& operator=(const char* s2);
_bstr_t& operator=(const wchar_t* s3);
_bstr_t& operator=(const _variant_t& var);
Parameters
s1
A _bstr_t
object to be assigned to an existing _bstr_t
object.
s2
A multibyte string to be assigned to an existing _bstr_t
object.
s3
A Unicode string to be assigned to an existing _bstr_t
object.
var
A _variant_t
object to be assigned to an existing _bstr_t
object.
END Microsoft Specific
Example
See _bstr_t::Assign
for an example that uses operator=
.
See also
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for