[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Edlug Archive Mar 2004 ]

[edlug] OT: Linux-Windows datastructure exchange C++



Apologies for the off-topic side to this question.

Hope someone can help with the following:

I have a Linux app coded in c++, which sends data-structures to UDP
broadcast.

The data-structures have __attribute__ ((PACKED)) to prevent word
alignment.

I have a Windows app (C++ VS.NET) to receive these data-structures  but
i can seem to get the __attribute__ ((PACKED)) to work and consequently
the data is skewed.

If anyone has come across this problem before and able to provide a clue
it would be greatly appreciated.

Cheers,
Paul

-
----------------------------------------------------------------------
You can find the EdLUG mailing list FAQ list at:
http://www.edlug.org.uk/list_faq.html



This archive is kept by wibble@morpheux.org.DONTSPAMME
homepage