CComBSTR Class Members

Methods

Append Appends a string to m_str.
AppendBSTR Appends a BSTR to m_str.
Attach Attaches a BSTR to the CComBSTR object.
CComBstr Constructor.
Copy Returns a copy of m_str.
Detach Detaches m_str from the CComBSTR object.
Empty Frees m_str.
Length Returns the length of m_str.
LoadString Loads a string resource.
ReadFromStream Loads a BSTR object from a stream.
WriteToStream Saves m_str to a stream.

Operators

operator BSTR Converts a CcomBSTR object to a BSTR.
operator = Assigns a value to m_str.
operator += Appends a CcomBSTR to the object.
operator & Returns the address of m_str.
operator ! Returns TRUE or FALSE, depending on whether m_str is NULL.

Data Members

m_str Contains the BSTR associated with the CComBSTR object.

CComBSTR Overview