Hello there,
I just checked out your example passing in an array of clusters.
What I tried but did not work is this example:
I created an array of clusters of two elements.
then I selected "adapt to type", handle through value
The resulting c Code for the types is this one
typedef struct {
double x;
double y;
} TD2;
typedef struct {
int32_t dimSize;
TD2 Cluster[1];
} TD1;
typedef TD1 **TD1Hdl;
So, how do I manage to acces e.g. the second cluster element? I tried this:
int32_t funcName3(TD1Hdl arg1, int32_t size1, int32_t *value)
{
TD2 clusterElem = (*arg1)->TD2[1];
return clusterElem.x;
}
But this code always returns 0.
Does anybody know why?
Regards
Wolfcastle