void GetElement( long* rgIndices, void* pvData );
Parameters
rgIndices
Pointer to an array of indexes for each dimension of the array.
pvData
Pointer to the location to place the element of the array.
Remarks
Call this function to retrieve a single element of the safe array. This function automatically calls the windows functions SafeArrayLock and SafeArrayUnlock before and after retrieving the element. If the data element is a string, object, or variant, the function copies the element in the correct way. The parameter pvData should point to a large enough buffer to contain the element.
On error, the function throws a CMemoryException or COleException.
COleSafeArray Overview | Class Members | Hierarchy Chart
See Also COleSafeArray::PutElement, SafeArrayGetElement