Share via


CComSafeArray::MultiDimSetAt

Sets the value of an element in a multidimensional array.

HRESULT MultiDimSetAt( 
   const LONG * alIndex, 
   const T& t  
);

Parameters

  • alIndex
    Pointer to a vector of indexes for each dimension in the array. The rightmost (least significant) dimension is alIndex[0].

  • T
    Specifies the value of the new element.

Return Value

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

Remarks

This is a multidimensional version of CComSafeArray::SetAt.

Requirements

Header: atlsafe.h

See Also

Reference

CComSafeArray Class

CComSafeArray::SetAt

CComSafeArray::GetAt

CComSafeArray::MultiDimGetAt

Other Resources

CComSafeArray Members