I'm hitting my head up against a wall trying to figure this out. I feel that I should at least know how to-do this, but I'm stumped.
My dilemma..
I make 32App, but to have it support 64bit OS, I have to include 64bit supported structure.
My ignorance is to declaring. If the 32App is running on 64bit OS, use Item.StructB, otherwise use Item.StructA. The Variable name is depended on so It needs to remain the same but declared to either structure based on criteria.
And I read the structure from variable name such as Item. The name must not change but a way to declare differently with alternative structure and both in an If and else cases. Currently I would be receiving already declared message.
Concept code:
Code: Select all
CompilerIf #PB_Compiler_Processor = #PB_Processor_x86
If Is64bitOS() : Protected Item.StructB : Else : Protected Item.StructA : EndIf
CompilerElse
Protected Item.StructA
CompilerEndIf