I\'m trying to access a member structs variables, but I can\'t seem to get the syntax right.
The two compile errors pr. access are:
error C2274: \'function-style cast\' : i
Here you have just defined a structure but not created any object of it. Hence when you say foo.Bar.otherdata = 5; it is compiler error. Create a object of struct Bar like Bar m_bar; and then use Foo.m_bar.otherdata = 5;