CComPtrBase::CopyTo
Call this method to copy the CComPtrBase pointer to another pointer variable.
HRESULT CopyTo(
T** ppT
) throw( );
Параметры
- ppT
Address of the variable which will receive the CComPtrBase pointer.
Возвращаемое значение
Returns S_OK on success, E_POINTER on failure.
Заметки
Copies the CComPtrBase pointer to ppT. The reference count on the CComPtrBase::p member variable is incremented.
An error HRESULT will be returned if ppT is equal to NULL. In debug builds, an assertion error will occur if ppT is equal to NULL.
Требования
Header: atlcomcli.h