Compartir a través de


CComSafeArray::Attach

Attaches a SAFEARRAY structure to a CComSafeArray object.

HRESULT Attach( 
   const SAFEARRAY * psaSrc  
);

Parameters

  • psaSrc
    A pointer to the SAFEARRAY structure.

Return Value

Returns S_OK on success, or an error HRESULT on failure.

Remarks

Attaches a SAFEARRAY structure to a CComSafeArray object, making the existing CComSafeArray methods available.

Requirements

Header: atlsafe.h

See Also

Reference

CComSafeArray Class

CComSafeArray::Detach