Click here to Skip to main content
15,909,897 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Groupbox question Pin
David Crow22-Sep-03 8:15
David Crow22-Sep-03 8:15 
GeneralRe: Groupbox question Pin
ns22-Sep-03 9:12
ns22-Sep-03 9:12 
GeneralStruct Alignment Pin
Mike Doner22-Sep-03 6:38
Mike Doner22-Sep-03 6:38 
We recently upgraded to VC.NET 2003, and have noticed some alignment problems with some of our structures that we serialize to disk. I checked my old settings in VC6, and noticed that all the products have the "Struct Byte Alignment" set to 8 bytes. I wrote code that would check the sizes of all our serialized structs, and all the sizes were calculated correctly.

I then went over to VC7 and checked the project settings, he was also setup to 8 byte alignment. I ran the same size check code, and quite a few of the sizes are not the same as in VC6, which is causing us all kinds of headaches.

I've tried changing the alignments, and our structures are still off in VC7, even though the settings are the same. Has anyone else had this problem? Any tips/tricks? ... What kinds of things do you do when setting up a struct? Which items in the struct have to be on 4/8 byte boundaries etc?

Anything you can send would be appreciated.
Thx.
Mike.
doner@obtain.com
GeneralRe: Struct Alignment Pin
David Crow22-Sep-03 7:21
David Crow22-Sep-03 7:21 
GeneralRe: Struct Alignment Pin
Mike Doner22-Sep-03 7:38
Mike Doner22-Sep-03 7:38 
GeneralRe: Struct Alignment Pin
David Crow22-Sep-03 7:59
David Crow22-Sep-03 7:59 
GeneralRe: Struct Alignment Pin
Mike Doner22-Sep-03 8:27
Mike Doner22-Sep-03 8:27 
GeneralRe: Struct Alignment Pin
David Crow22-Sep-03 9:05
David Crow22-Sep-03 9:05 
Generalpackaging stuff Pin
act_x22-Sep-03 6:17
act_x22-Sep-03 6:17 
GeneralCDialogBar Pin
DeckY22-Sep-03 4:33
DeckY22-Sep-03 4:33 
GeneralRe: CDialogBar Pin
JWood22-Sep-03 9:54
JWood22-Sep-03 9:54 
GeneralPrinting RTF text with transparent BK Pin
CodeBrain22-Sep-03 4:31
CodeBrain22-Sep-03 4:31 
GeneralCSlider Pin
DeckY22-Sep-03 4:24
DeckY22-Sep-03 4:24 
GeneralRe: CSlider Pin
David Crow22-Sep-03 7:22
David Crow22-Sep-03 7:22 
GeneralRe: CSlider Pin
Anonymous22-Sep-03 20:40
Anonymous22-Sep-03 20:40 
GeneralRe: CSlider Pin
David Crow23-Sep-03 2:54
David Crow23-Sep-03 2:54 
GeneralNotification Event ! Pin
rohit.dhamija22-Sep-03 3:25
rohit.dhamija22-Sep-03 3:25 
GeneralRe: Notification Event ! Pin
valikac22-Sep-03 4:51
valikac22-Sep-03 4:51 
Generalflicker free drawing Pin
Genius Logics22-Sep-03 3:16
sussGenius Logics22-Sep-03 3:16 
GeneralRe: flicker free drawing Pin
JWood22-Sep-03 3:30
JWood22-Sep-03 3:30 
GeneralRe: flicker free drawing Pin
LittleYellowBird22-Sep-03 5:40
LittleYellowBird22-Sep-03 5:40 
Questioncrystal report at runtime? Pin
murali_utr22-Sep-03 3:05
murali_utr22-Sep-03 3:05 
GeneralRGB to long Pin
Shah Shehpori22-Sep-03 2:44
sussShah Shehpori22-Sep-03 2:44 
GeneralRe: RGB to long Pin
Mike Dimmick22-Sep-03 2:51
Mike Dimmick22-Sep-03 2:51 
GeneralRe: RGB to long Pin
David Crow22-Sep-03 3:02
David Crow22-Sep-03 3:02 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.