COleSafeArray::Attach
Gives control of the data in an existing VARIANT array to the COleSafeArray object.
void Attach(
VARIANT& varSrc
);
Parameters
- varSrc
A VARIANT object. The varSrc parameter must have the VARTYPE VT_ARRAY.
Remarks
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.
Requirements
Header: afxdisp.h