Hi.
I'm trying to write a type based on a C++ struct and came across union. I had a look on Google but couldn't really understand what it was (I dont like C++ and it's quite late :P).
I'm reading file headers into the types and just want to know whether it's possible to just ignore the union and enter the fields in it into the type as though the union keyword was never there. For example if the C++ struct is:
Could the Type be:
Thanks for any help - and I hope i make sense!
Matt
I'm trying to write a type based on a C++ struct and came across union. I had a look on Google but couldn't really understand what it was (I dont like C++ and it's quite late :P).
I'm reading file headers into the types and just want to know whether it's possible to just ignore the union and enter the fields in it into the type as though the union keyword was never there. For example if the C++ struct is:
typedef struct _Blah_Struct{ BYTE Var1; union { BYTE uVar1; } BYTE var2; } Blah_Struct;
Could the Type be:
Type BlahStruct Field var1:Byte Field uVar1:Byte Field var2:Byte End Type
Thanks for any help - and I hope i make sense!
Matt