I don't think this would do it. There is no guarentee that these types resolve to the same underlying type on the machine. That is _uint32 guarenties that it will hold a 32 bit number but doesn't guarentee that it is in fact a 32 bit number and may well be a 64 bit number on a particular platform. These are just typedefs for native types guarenteed to be able to hold an integer of the required size. The native binary serialization will is built for speed and does no conversion. The portable binary archive is what you want here, but as I mentioned before - its up to an interested party to finish. Robert Ramey Merrill Cornish wrote:
Leon,
I assume if I would want to make the x86 data files readable on an amd64 architecture, I would have to write my own conversion utility,
One less drastic alternative is to use explilcit types such as _int32 or _uint64. That should make sure variables are of the same size on different machines.
Merrill