I am examining the code of the Filemaker plug-in SDK.
typedef struct FMX_ExternCallStruct *FMX_ExternCallPtr;
typedef void (*FMX_ExternCallProc)(FMX_ExternCallPtr);
// Several members. Amongst them:
To learn something about using structs I tried using this struct, but I don't succeed in doing so.
extern FMX_ExternCallStruct InstanceOfThisStruct;
InstanceOfThisStruct.ExtnVersion = 1;//error C2143: syntax error : missing ';' before '.'
//using the typedef'ed pointer:
extern FMX_ExternCallPtr InstanceOfThisStruct;
InstanceOfThisStruct->ExtnVersion = 1;//same error but with '->'
I was pretty sure I understood how structs work. Turns out I don't. Anyone a suggestion of how I should be able to use this struct and access a member?
Last edited on
you need to include the definition of the struct in order to use it
Topic archived. No new replies allowed.