Hello!
I hope my message is not stupide but I am really blocked.
I want to initialize an array of string and I don't succed in.This array will be sent by a data sucket so among the DS_SetDataValue help I must ahve a char * value [ ];
This help give this exemple:
Example of 1D array of strings
char *value[] = {"String Value 1", "String Value 2"};
DS_SetDataValue (dsHandle, CAVT_CSTRING | CAVT_ARRAY, value, sizeof (value) / sizeof (value[0]), 0);
But I want to allocate dynamically the char *value[ ]:
Code I use is that one:
{
char * value [50];
int tempi;
double tempd;
memset(value,1,50);
tempi=12;
Fmt(value[0],"%d",tempi);
tempd=1.568;
Fmt(value[1],"%f",tempd);
ect....
DS_SetDataValue (SendDataContexte, CAVT_CSTRING | CAVT_ARRAY, value, sizeof (value) / sizeof (value[0]), 0);
}
If someone have an idea??