Share via


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.

Class

Purpose

_bstr_t

Wraps the BSTR type to provide useful operators and methods.

_com_error

Defines the error object thrown by _com_raise_error in most failures.

_com_ptr_t

Encapsulates COM interface pointers, and automates the required calls to AddRef, Release, and QueryInterface.

_variant_t

Wraps the VARIANT type to provide useful operators and methods.

See Also

Reference

Compiler COM Support

Compiler COM Global Functions

Other Resources

C++ Language Reference