Describe the features provided by the templated base class CComObjectRootEx.

The templated base class CComObjectRootEx provides a default implementation for the
IUnknown interface methods QueryInterface(), AddRef(), and Release().
When you derive from this class, your client can use QueryInterface() to acquire an interface pointer to any interface that your COM object supports.
CComObjectRootEx also provides implementations of the IUnknown methods AddRef() and Release() to perform reference counting for your object.

No comments: