Subj : Sqfix problem To : Bob Jones From : Bo Simonsen Date : Mon Oct 06 2003 05:23 pm Hello Bob! 05 Oct 03 14:19, you wrote to me: BS>> Oh! I thought so, but I wasn't scure about it. BJ> I thought of an additional item..... Even a packed structure might BJ> round up the sizeof() to be a multiple of 4 or 8 bytes.... BJ> That would mean you would still need to specify the size via another BJ> means for reading and/or writing the packed structure.... I haven't BJ> tested this.... Yes I see that, if I understand correctly the structure is packed, but sizeof(STRUCT) returns the size of the "unpacked" structure. BJ>> Wes has a define made to allow packing the structures BJ>> under GCC but not on other compilers where the packing isn't BJ>> needed. BS>> It's needed for use with fx. OS/2 or Win32, BTW one of BS>> my links told that the user.bbs from a Max/2 can't be BS>> readed by Max/Linux BJ> Ok.... I haven't tried that yet. I will have either a conversion BJ> routine or that fixed before my BBS transitions from OS/2 to BJ> Linux..... Okay.. I won't be a problem to write a small convertion program. Regards, Bo --- GoldED+/LNX 1.1.4.7 * Origin: The Night Express, Roennede Dk (2:236/100) .