Pretty simple question (hopefully). Given the structure in C (whose layout is known at compile time), is there a way (through a macro or another) so that I can access the byte position of the named field in the structure?
Union support will be a bonus. The compiler is VC ++ 2008. Suppose that it is used #pragma pack(1).
Greetings
Kazar source
share