Click here to Skip to main content
15,885,278 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Parse a binary number Pin
David Crow23-Sep-03 8:45
David Crow23-Sep-03 8:45 
GeneralRe: Parse a binary number Pin
ASchunk22-Sep-03 8:21
ASchunk22-Sep-03 8:21 
GeneralGroupbox question Pin
ns22-Sep-03 7:48
ns22-Sep-03 7:48 
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 
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 
Dave,

Thanks for your reply.

Currently, we're using the /Zp option, but I've been spending a lot of time in the help files reading more about the #pragma pack() option. I have a list of structs that are giving us hassles here, I'm going to go through and wrap them with the #pragma pack ( push, 1), and see if that does the trick.

I just found it strange that our project in VC6 was aligned at 8 bytes, worked great. I upgraded the project to VC7-2003, it says it was aligned at 8 bytes, but gave me all kinds of errors when running.

Generally, whats safe practice here? What kind of rules should I follow?

Thanks.
Mike.

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 

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.