Click here to Skip to main content
15,895,011 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: Anyone care to tell me why this is 24 bytes? Pin
TheDoctor28-Jul-04 15:52
TheDoctor28-Jul-04 15:52 
AnswerRe: Anyone care to tell me why this is 24 bytes? Pin
ssiegel28-Jul-04 17:35
ssiegel28-Jul-04 17:35 
AnswerRe: Anyone care to tell me why this is 24 bytes? Pin
SOCM_FP_CPP29-Jul-04 0:33
SOCM_FP_CPP29-Jul-04 0:33 
GeneralRe: Anyone care to tell me why this is 24 bytes? Pin
Link260029-Jul-04 0:39
Link260029-Jul-04 0:39 
GeneralRe: Anyone care to tell me why this is 24 bytes? Pin
SOCM_FP_CPP29-Jul-04 0:51
SOCM_FP_CPP29-Jul-04 0:51 
GeneralRe: Anyone care to tell me why this is 24 bytes? Pin
Link260029-Jul-04 1:02
Link260029-Jul-04 1:02 
GeneralRe: Anyone care to tell me why this is 24 bytes? Pin
SOCM_FP_CPP29-Jul-04 1:18
SOCM_FP_CPP29-Jul-04 1:18 
GeneralRe: Anyone care to tell me why this is 24 bytes? Pin
Rick York29-Jul-04 6:32
mveRick York29-Jul-04 6:32 
By default, data items are aligned to a boundary that matches their size - not necessarily a DWORD. A short will be aligned on a two-byte boundary, a char on a one-byte boundary, and a double on an eight-boundary.

Also, the best way to use the pack pragma is to save and restore the previous alignment. This is done as follows :

#pragma pack(push, 1) // saves old packing and sets it to 1

...

#pragma pack(pop) // restores previous packing



__________________________________________
a two cent stamp short of going postal.

GeneralCreateProcess Pin
Paul Selormey28-Jul-04 11:58
Paul Selormey28-Jul-04 11:58 
GeneralRe: CreateProcess Pin
valikac28-Jul-04 14:00
valikac28-Jul-04 14:00 
GeneralRe: CreateProcess Pin
Jörgen Sigvardsson28-Jul-04 14:04
Jörgen Sigvardsson28-Jul-04 14:04 
GeneralRe: CreateProcess Pin
Paul Selormey28-Jul-04 14:41
Paul Selormey28-Jul-04 14:41 
GeneralRe: CreateProcess Pin
Jörgen Sigvardsson28-Jul-04 14:03
Jörgen Sigvardsson28-Jul-04 14:03 
GeneralRe: CreateProcess Pin
Paul Selormey28-Jul-04 14:40
Paul Selormey28-Jul-04 14:40 
Questiondig fuction for Windows ?? Pin
otrcomm28-Jul-04 10:57
otrcomm28-Jul-04 10:57 
General(Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Scolex28-Jul-04 10:53
Scolex28-Jul-04 10:53 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Johan Rosengren28-Jul-04 20:06
Johan Rosengren28-Jul-04 20:06 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Scolex29-Jul-04 9:48
Scolex29-Jul-04 9:48 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
David Crow29-Jul-04 2:35
David Crow29-Jul-04 2:35 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Scolex29-Jul-04 16:47
Scolex29-Jul-04 16:47 
GeneralRe: (Probably easy to answer:) Initializing splitter pane sizes with other controls in the mainframe client area (Doc/View) Pin
Scolex29-Jul-04 16:55
Scolex29-Jul-04 16:55 
GeneralTandem Pin
bikram singh28-Jul-04 9:51
bikram singh28-Jul-04 9:51 
Generalrebar animation Pin
alex.barylski28-Jul-04 9:23
alex.barylski28-Jul-04 9:23 
GeneralDialog Pin
S.DARWIN PAUL RAJ28-Jul-04 9:18
S.DARWIN PAUL RAJ28-Jul-04 9:18 
GeneralRe: Dialog Pin
David Crow28-Jul-04 9:28
David Crow28-Jul-04 9:28 

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.