Compartir a través de


CHandle::operator =

The assignment operator.

CHandle& operator =( 
   CHandle& h  
) throw( );

Parameters

  • h
    CHandle will take ownership of the handle h.

Return Value

Returns a reference to the new CHandle object.

Remarks

If the CHandle object currently contains a handle, it will be closed. The CHandle object being passed in will have its handle reference set to NULL. This ensures that two CHandle objects will never contain the same active handle.

Requirements

Header: atlbase.h

See Also

Reference

CHandle Class

CHandle::Attach