Hello,
Below you will see to examples of code
{
VARIANT XV,
double x[2][4];
CA_VariantSet2DArray (&XV, CAVT_DOUBLE, 2, 4, x);
}
{
VARIANT XV,
double *x[2];
x[0] = malloc (4 * sizeof (double));
x[1] = malloc (4 * sizeof (double));
CA_VariantSet2DArray (&XV, CAVT_DOUBLE, 2, 4, x);
}
The first one is working the second not. Why?
How can I used varable array sizes with VARIANTS?
Thank you
Bertrand