Click here to Skip to main content
16,018,802 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: How to get body of new arrived mail? Pin
Shashi Shinde1-Mar-07 20:55
Shashi Shinde1-Mar-07 20:55 
GeneralRe: How to get body of new arrived mail? Pin
Programm3r1-Mar-07 21:00
Programm3r1-Mar-07 21:00 
GeneralRe: How to get body of new arrived mail? Pin
Shashi Shinde1-Mar-07 22:14
Shashi Shinde1-Mar-07 22:14 
GeneralRe: How to get body of new arrived mail? Pin
Programm3r1-Mar-07 22:34
Programm3r1-Mar-07 22:34 
GeneralRe: How to get body of new arrived mail? Pin
Shashi Shinde2-Mar-07 2:50
Shashi Shinde2-Mar-07 2:50 
Questionsizeof() Operator Pin
Bulky Fellow1-Mar-07 18:30
Bulky Fellow1-Mar-07 18:30 
AnswerRe: sizeof() Operator [modified] Pin
Naveen1-Mar-07 19:07
Naveen1-Mar-07 19:07 
AnswerRe: sizeof() Operator Pin
Mark Salsbery1-Mar-07 19:10
Mark Salsbery1-Mar-07 19:10 
Each structures member is aligned by default to a 4 byte offset within the structure.
Therefore, padding is required to adjust the offsets of each member.

In the a struct, c1 is offset 0, i1 is at offset 4, c2 is at offset 8, and i2 is at offset 12.
In the b struct, i1 is offset 0, i2 is at offset 4, c1 is at offset 8, and c2 is at offset 12, with one byte padding tacked on the end to make the total size a multiple of 4.

See "packing structures" in online help for details.

Mark


"Great job, team. Head back to base for debriefing and cocktails."
(Spottswoode "Team America")

QuestionMore problem Pin
Kiethnt1-Mar-07 17:28
Kiethnt1-Mar-07 17:28 
AnswerRe: More problem Pin
Hamid Taebi1-Mar-07 17:56
professionalHamid Taebi1-Mar-07 17:56 
AnswerRe: More problem Pin
John R. Shaw2-Mar-07 21:39
John R. Shaw2-Mar-07 21:39 
Questioncomplete Pin
Kiethnt1-Mar-07 17:25
Kiethnt1-Mar-07 17:25 
AnswerRe: complete Pin
Cedric Moonen1-Mar-07 20:05
Cedric Moonen1-Mar-07 20:05 
QuestionC++ to DSP Pin
apoc831-Mar-07 14:28
apoc831-Mar-07 14:28 
AnswerRe: C++ to DSP Pin
Cedric Moonen1-Mar-07 20:07
Cedric Moonen1-Mar-07 20:07 
GeneralRe: C++ to DSP Pin
apoc831-Mar-07 20:26
apoc831-Mar-07 20:26 
QuestionProblem using CStrings in a linked list (memory leak) Pin
CoffeeAddict191-Mar-07 10:25
CoffeeAddict191-Mar-07 10:25 
AnswerRe: Problem using CStrings in a linked list (memory leak) Pin
Mark Salsbery1-Mar-07 10:57
Mark Salsbery1-Mar-07 10:57 
AnswerRe: Problem using CStrings in a linked list (memory leak) Pin
led mike1-Mar-07 11:30
led mike1-Mar-07 11:30 
GeneralRe: Problem using CStrings in a linked list (memory leak) Pin
Nibu babu thomas1-Mar-07 16:20
Nibu babu thomas1-Mar-07 16:20 
AnswerRe: Problem using CStrings in a linked list (memory leak) Pin
prasad_som1-Mar-07 20:00
prasad_som1-Mar-07 20:00 
Questiongenerating reports Pin
namratab1-Mar-07 8:51
namratab1-Mar-07 8:51 
AnswerRe: generating reports Pin
Anders Gustafsson1-Mar-07 9:18
Anders Gustafsson1-Mar-07 9:18 
GeneralRe: generating reports Pin
namratab1-Mar-07 9:34
namratab1-Mar-07 9:34 
GeneralRe: generating reports Pin
Anders Gustafsson1-Mar-07 22:17
Anders Gustafsson1-Mar-07 22:17 

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.