다음을 통해 공유


CComQIPtr::operator =

The assignment operator.

T* operator =(
   T* lp 
) throw( );
T* operator =(
   const CComQIPtr< T,
   piid >& lp 
) throw( );
T* operator =(
   IUnknown* lp 
) throw( );

Parameters

  • lp
    Used to initialize the interface pointer.

  • T
    A COM interface.

  • piid
    A pointer to the IID of T.

Return Value

Returns a pointer to the updated CComQIPtr object.

Requirements

Header: atlcomcli.h

See Also

Reference

CComQIPtr Class

CComPtrBase Class

Other Resources

CComQIPtr Members