COleSafeArray::Lock

void Lock( );

Remarks

Call this function to increment the lock count of an array and place a pointer to the array data in the array descriptor. On error, it throws a COleException.

The pointer in the array descriptor is valid until Unlock is called. Calls to Lock can be nested; an equal number of calls to Unlock are required.

An array cannot be deleted while it is locked.

COleSafeArray OverviewClass MembersHierarchy Chart

See Also   COleSafeArray::Unlock, SafeArrayLock