Compiler COM Support Classes

 

The new home for Visual Studio documentation is Visual Studio 2017 Documentation on docs.microsoft.com.

The latest version of this topic can be found at Compiler COM Support Classes.

Microsoft Specific**

Standard classes are used to support some of the COM types. The classes are defined in comdef.h and the header files generated from the type library.

ClassPurpose
_bstr_tWraps the BSTR type to provide useful operators and methods.
_com_errorDefines the error object thrown by _com_raise_error in most failures.
_com_ptr_tEncapsulates COM interface pointers, and automates the required calls to AddRef, Release, and QueryInterface.
_variant_tWraps the VARIANT type to provide useful operators and methods.

Compiler COM Support
Compiler COM Global Functions
C++ Language Reference

Show: