Hi,
I get the error above and I'm not sure why.
I have a file img.h (which I didn't write and have to use), in which I have
Then in img.c I have a function called LoadImage.Code:typedef struct{ int XSize, YSize; int ZSize; unsigned char *Data; } imginfo;
My problem is that when I call it from another file, the function works fine (it prints out info about an image), but I don't know how to access the members.
I'm doing this:
The prototype for LoadImage is:Code:struct imginfo *infoCoul; int diggity; diggity = LoadImage(refCam, infoCoul); printf("X: %d\n", infoCoul->XSize);
int LoadImage(char *Name, imginfo *I);
It's not a missing .h file inclusion since my LoadImage function works.
Also, if I wanted to acess *Data would I need to declare something like an "unsiged char **dataAccess"?
Thanks



LinkBack URL
About LinkBacks



