Subj : Re: bit field bug? To : borland.public.cpp.borlandcpp From : Bob Gonder Date : Mon Nov 17 2003 09:04 am Jeff wrote: >I am upgrading an old app from Borland C++ 5.01a to the latest MS Visual >Studio C++. The app uses bitfields in data structures and I am seeing a >problem where it looks like the MS version of the data structure is correct >in size, but the Borland C++ version is larger by 1 byte than it should be. >Is there a bug in BC++ 5.01a in the bit field assignment and layout? Sounds like a data alignment problem. Could be that you have MS set for Byte alignment, and BC for Word. We'd need to see your actual structure for a diagnosis. .