CComPtr::operator =

Assignment operator.

T* operator =( 
   T* lp  
) throw ( );  
T* operator =( 
   const CComPtr< T >& lp  
) throw ( );

Return Value

Returns a pointer to the updated CComPtr object. This operation AddRefs the new object and releases the existing object, if one exists.

Requirements

Header: atlcomcli.h

See Also

Reference

CComPtr Class

CComPtrBase Class

Other Resources

CComPtr Members

Change History

Date

History

Reason

July 2010

Updated with additional info re AddRef and Release.

Customer feedback.