I am examining the code of the Filemaker plug-in SDK.
1 2 3 4 5 6 7 8 9
struct FMX_ExternCallStruct;
typedefstruct FMX_ExternCallStruct *FMX_ExternCallPtr;
typedefvoid (*FMX_ExternCallProc)(FMX_ExternCallPtr);
struct FMX_ExternCallStruct
{
// Several members. Amongst them:
short extnVersion;
};
To learn something about using structs I tried using this struct, but I don't succeed in doing so.
I tried:
1 2 3 4 5
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?