void CreateOneDim( VARTYPE vtSrc, DWORD dwElements, const void* pvSrcData = NULL, long nLBound = 0 );
Parameters
vtSrc
The base type of the array (that is, the VARTYPE of each element of the array).
dwElements
Number of elements in the array. This can be changed after the array is created with ResizeOneDim.
pvSrcData
Pointer to the data to copy into the array.
nLBound
The lower bound of the array.
Remarks
Call this function to create a new one-dimensional COleSafeArray object. The function allocates and initializes the data for the array, copying the specified data if the pointer pvSrcData is not NULL.
On error, the function throws a CMemoryException.
COleSafeArray Overview | Class Members | Hierarchy Chart
See Also COleSafeArray::GetOneDimSize, COleSafeArray::ResizeOneDim, COleSafeArray::Create