CComPtr wraps any interface pointer and will call AddRef() and Release() properly. You don't need to worry about controlling the lifetime of your interface pointer.
A Pure C++ Implementation of a COM Smart Pointer
Published 03/01/2006
