A _com_ptr_t object helps manage the lifetime of your COM server object by calling the
IUnknown::AddRef() and IUnknown::Release() methods of the encapsulated interface on your behalf.
AddRef() is called automatically when a _com_ptr_t object is created as a copy
from an existing interface pointer, and Release() is called automatically when a
_com_ptr_t object goes out of scope.
IUnknown::AddRef() and IUnknown::Release() methods of the encapsulated interface on your behalf.
AddRef() is called automatically when a _com_ptr_t object is created as a copy
from an existing interface pointer, and Release() is called automatically when a
_com_ptr_t object goes out of scope.
Comments