How to input Matrix as argument in XLL

Feb 2, 2014 at 2:34 PM
Hi, I would like to input a matrix as a argument in XLL. How should I write the data type? What is the Signature of the data type? I tried on the following code but it does not work.

__declspec(dllexport) double InputMatrix (double A[2][3])
   return A[1][2];

Signature in the header file: L"BB"
Feb 2, 2014 at 2:56 PM
This is a job for the FP data type:
You should declare functions called from Excel using WINAPI (aka __stdcall). See, e.g., for how to call the LAPACK Cholesky decomposition.