J
jc
i received a library from a vendor, this will give me a list of names,
when i call the function,
the function definition looks like this
bool ReturnObjects(char **strObjects, int *nCount);
all we have to do is define a pointer like
the implementation on my side will be like
void main(void){
char **strObjects;
int nCount;
ReturnObjects(strObjects, &nCount);
}
i have no idea how they implemented this. i tried to do the same, i
cannot get the values back, unless i define
the function parameters as a triple pointer and call the function as
char **strObjects = NULL;
ReturnObjects(&strObjects, &nCount);
while the function declaration will be like
bool ReturnObjects(char ***strObjects, int *nCount);
what am i doing wrong.
thanks
jc
when i call the function,
the function definition looks like this
bool ReturnObjects(char **strObjects, int *nCount);
all we have to do is define a pointer like
the implementation on my side will be like
void main(void){
char **strObjects;
int nCount;
ReturnObjects(strObjects, &nCount);
}
i have no idea how they implemented this. i tried to do the same, i
cannot get the values back, unless i define
the function parameters as a triple pointer and call the function as
char **strObjects = NULL;
ReturnObjects(&strObjects, &nCount);
while the function declaration will be like
bool ReturnObjects(char ***strObjects, int *nCount);
what am i doing wrong.
thanks
jc