XLL+ Class Library (7.0)

CXlArray::Create

Creates and populates a CXlArray object

void Create(
   size_t cRows,
   size_t cCols,
   const double* pd
);

Parameters

cRows

The number of rows a newly created array object should contain.

cCols

The number of columns a newly created array object should contain.

pd

An array of double's, containing (cRows x cCols) items.

Exceptions

If memory allocation fails, then an exception of type CXlMemoryAllocationFailedException will be thrown. Since this exception is derived from CXlRuntimeException, it will be caught by the add-in wrapper function when this method is called from within an add-in function.

Requirements

Header: xllplus.h

See Also

CXlArray Class | CXlArray Methods | CXlArray::CreateFromCols() | CXlArray::CreateFromRows()