Le 23 Dec 97, Lee Kirby parlait à All au sujet de "Extra bytes":
LK> I'm very new to C++, and can't figure out why I get two extra
LK> bytes when I write this structure to a file:
LK> struct fidoMsg::fMsg {
LK> The way I count, this structure should be only 190 bytes, but if
LK> I do a
LK> sizeof( fMsg), it reports 192!
Try using
#pragma pack(1)
before you declare the struct
Salut,
Luc
--- FEddi 0.9pl7 via ifcico
---------------
* Origin: Ignorance is curable. Stupidity is ETERNAL. (2:293/3202.18)
|