T* operator =( T* lp );
T* operator =( const CComQIPtr< T, piid >& lp );
T* operator =( IUnknown* lp );
Remarks
When assigning a pointer type derived from T, the operator sets p to the given T*. When assigning a CComQIPtr, the operator sets p to the member pointer of lp.
When assigning a pointer type not derived from T, the operator calls QueryInterface to set p to an interface pointer corresponding to piid. If QueryInterface fails, p is set to NULL.