Matthew Brown wrote:I'm not sure how the data types are stored in C
bruce truong wrote:Thank you all for your prompt reply. I found out what's happening. It's like Jeff stated, it has to do with the hardware and OS. This program was written for UNIX and now I am working in Windows 7 64-bit. The machine bit architecture are different on each platform. It's high-order vs low-order bits. I appreciate all your comments.
bt
Pat Farrell wrote:
If you must do it as binary, the only reliable way is to "marshal" the data, Google for CORBA and see how it marshals data -- its non-trivial.
Jeff Verdegan wrote:
And if you do it as strings, that's just another form of marshaling as well.Pat Farrell wrote:
If you must do it as binary, the only reliable way is to "marshal" the data, Google for CORBA and see how it marshals data -- its non-trivial.
SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6 - OCEJPAD 6
How To Ask Questions How To Answer Questions
Rob Spoor wrote:1) The size of long and int is not specified in C. An int can be 16 bits, or 32 bits, or possibly even 64 bits. A long can be 32 bits but also 64 bits.
Consider Paul's rocket mass heater. |