Originally Posted by fpmurphy
Sorry, but you are still missing the point. You cannot safely pass structures between disparate platforms. You may get away with it on occasion between two particular platforms with two particular compilers but the way you intend doing it is not portable and will come back to bite you.
As other have suggested, check out serialization/deserialization and marshalling/unmarshalling techniques.
You sure can - if you know what you're doing.
Else things wouldn't work - say, like the ENTIRE internet.
What's a TCP packet? A structure. Passed between multiple types of platforms. From the bulk of the available evidence, quite successfully, too.