Microsoft Specific
A _bstr_t object encapsulates the BSTR data type. The class manages resource allocation and deallocation, via function calls to SysAllocString and SysFreeString, and other BSTR APIs when appropriate. The _bstr_t class uses reference counting to avoid excessive overhead.
#include <comdef.h>
Compiler COM Support Class Overview
Construction
_bstr_t | Constructs a _bstr_t object. |
Operations
copy | Constructs a copy of the encapsulated BSTR. |
length | Returns the length of the encapsulated BSTR. |
Operators
operator = | Assigns a new value to an existing _bstr_t object. |
operator += | Appends characters to the end of the _bstr_t object. |
operator + | Concatenates two strings. |
operator ! | Checks if the encapsulated BSTR is a NULL string. |
operator ==, !=, <, >, <=, >= | Compares two _bstr_t objects. |
operator wchar_t*, char* | Extract the pointers to the encapsulated Unicode or multibyte BSTR object. |
END Microsoft Specific