Neil Devlin wrote:
> As I only use a memcpy(..) to copy the structure accross instead of each 
> individual items, will this cause a problem server runs on Win2000, and 
> client runs on a XP 64 bit,or XP?

It doesn't relate to the OS; it relates to the compiler.  As long as
your compile environments are similar/identical, no, you won't have any
problems.

On 64-bit systems, however (both IA64 and x86-64) the situation is
different.  On those system, data type sizes are different, for example,
a long is 64 bits.  Therefore, the overall structure size would differ.
 If you're targetting x86-64, a simple solution is compiling your app to
produce a 32-bit binary, which the OS would run just fine (IIRC there
was something called WoW64 in this regard).  But if you need real 64 bit
code, you can only design a data transmission standard which would make
sure different sized data gets converted properly before
transmission/after reception.  You can use well known data transfer
formats (like XML) or design your own.



--
Ehsan Akhgari
Farda Technology <http://www.farda-tech.com/>

If Java had true garbage collection, most programs would delete
themselves upon execution. - Robert Sewell


_______________________________________________
msvc mailing list
msvc@beginthread.com
See http://beginthread.com/mailman/listinfo/msvc_beginthread.com for 
subscription changes, and list archive.

Reply via email to