F
family.sens
hi all,
im using a C# webservice to communicate some data over a socket to a
VC++ program.
what the vc++ program does is return a struct() over the socket.
now the struct contains 2 32 bit integers (according to VC++) i.e. long
(System.Int32)
all the byte[] data is received correctly, however , if im expecting
'320' as the value of the long variable im getting a huge number like
'612334539'.
does this have something to do with Little-Endian / Big-Endian issues ?
does this require me to use IPAddress.NetworkToHostOrder() ?
TIA.
Neil
im using a C# webservice to communicate some data over a socket to a
VC++ program.
what the vc++ program does is return a struct() over the socket.
now the struct contains 2 32 bit integers (according to VC++) i.e. long
(System.Int32)
all the byte[] data is received correctly, however , if im expecting
'320' as the value of the long variable im getting a huge number like
'612334539'.
does this have something to do with Little-Endian / Big-Endian issues ?
does this require me to use IPAddress.NetworkToHostOrder() ?
TIA.
Neil