XLL+ Class Library

Array results the hard way

Sometimes your results will not be in ready-made vector or imtx form, and you'll need to use a different CXlOper method to populate xloResult.

CXlOper::FromDoubleArray

The simplest method to use is CXlOper::FromDoubleArray(), to populate the xloResult, using an array of values or of pointers to rows/columns of values.

The various different versions of this method are listed below:

CXlOper::AllocArray

A more complex way to populate an array result is by using CXlOper::AllocArray() to create the array, and then CXlOper::Cell() to populate each cell.

While this method involves more programming, it gives you full control over the output, and allows you to have mixed data types in the array.

See the CXlOper::AllocArray() example for an example of this technique.

Next: Application level data - CXllApp >>