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

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

> 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.

The MS equivalent is
  #pragma pack
(on VC++ 6 anyway).
It takes some arguments for alignment and to push/pop packing state I think.

--- I am obliged to attach the following ---

Tim Day
Senior Software Engineer
Voxar Limited
Edinburgh - Corporate Headquarters | Boston
Bonnington Bond, 2 Anderson Place, Edinburgh EH6 5NP, UK
Tel: +44 (0) 131 472 4792 Fax: +44 (0) 131 472 4799
Email: tim.day@xxx.xxx.xxx Web: www.voxar.com
Registered in Scotland No. 145641 Registered Office as above.

This email is sent subject to the legal requirements set out at
You can find the EdLUG mailing list FAQ list at:

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