COleSafeArray::Attach

void Attach( VARIANT& varSrc );

Parameters

varSrc

A VARIANT object. The varSrc parameter must have the VARTYPE VT_ARRAY.

Remarks

Call this function to give control of the data in an existing VARIANT array to the COleSafeArray object. The source VARIANT's type is set to VT_EMPTY. This function clears the current array data, if any.

Example

See the example for COleSafeArray::AccessData.

COleSafeArray OverviewClass MembersHierarchy Chart

See Also   COleSafeArray::Detach