OK, it seems that there is a problem with passing the Structure to the C-Function.
If i insert a dummy argument into the C-Function like this:
char* GetCStr(int dummy, struct myStruct *myS) {
myS->str = (char*)calloc(10,sizeof(char));
//do some other stuff like strcpy
return myS->str;
}...
Hello com,
im sped a lot of time with interfaing a C-Function which looks quite like this:
include "myStruct.h"
char* GetCStr(struct myStruct *myS) {
myS->str = (char*)calloc(10,sizeof(char));
//do some other stuff like strcpy
return myS->str;
}
Well, i tried to write an interface...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.