Click here to Skip to main content
15,888,351 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: how to proceed with Notification of emails using Mapi. Pin
uday kiran janaswamy30-Aug-06 1:45
uday kiran janaswamy30-Aug-06 1:45 
QuestionRich text formating and tags Pin
Cedric Moonen29-Aug-06 22:53
Cedric Moonen29-Aug-06 22:53 
AnswerRe: Rich text formating and tags Pin
Waldermort30-Aug-06 1:08
Waldermort30-Aug-06 1:08 
QuestionRe: Rich text formating and tags Pin
David Crow30-Aug-06 3:13
David Crow30-Aug-06 3:13 
AnswerRe: Rich text formating and tags Pin
Cedric Moonen30-Aug-06 3:27
Cedric Moonen30-Aug-06 3:27 
Questionsize of structure variable Pin
Vishvanathan29-Aug-06 21:28
Vishvanathan29-Aug-06 21:28 
AnswerRe: size of structure variable Pin
Maxwell Chen29-Aug-06 21:44
Maxwell Chen29-Aug-06 21:44 
AnswerRe: size of structure variable Pin
Cedric Moonen29-Aug-06 21:45
Cedric Moonen29-Aug-06 21:45 
That's because of member structure alignment: your compiler will align the members of the structure on some specific boundaries (e.g. on 8 or 4 bytes boundaries). This is done to maximize the speed: if a variable is on an boundary, it will require two instructions to get it from memory instead of one.
If you want to force your compiler to disable alignment, wrap your structure around #pragma:

#pragma pack(1)

// Your struct here

#pragma pack  // to reset to default

Note: I'm not sure anymore about the syntax, you'll have to check that.


Cédric Moonen
Software developer

Charting control [Updated - v1.1]

GeneralRe: size of structure variable Pin
Vishvanathan29-Aug-06 22:26
Vishvanathan29-Aug-06 22:26 
QuestionHard Disk serial Number Pin
vijay_aroli29-Aug-06 21:04
vijay_aroli29-Aug-06 21:04 
AnswerRe: Hard Disk serial Number Pin
Hamid_RT29-Aug-06 21:55
Hamid_RT29-Aug-06 21:55 
QuestionRe: Hard Disk serial Number Pin
David Crow30-Aug-06 3:17
David Crow30-Aug-06 3:17 
QuestionShow Desktop Problem-Minimizes all the window Pin
payal33529-Aug-06 20:54
payal33529-Aug-06 20:54 
AnswerRe: Show Desktop Problem-Minimizes all the window Pin
Nibu babu thomas30-Aug-06 0:30
Nibu babu thomas30-Aug-06 0:30 
GeneralRe: Show Desktop Problem-Minimizes all the window Pin
payal33530-Aug-06 1:02
payal33530-Aug-06 1:02 
GeneralRe: Show Desktop Problem-Minimizes all the window Pin
Nibu babu thomas30-Aug-06 1:07
Nibu babu thomas30-Aug-06 1:07 
GeneralRe: Show Desktop Problem-Minimizes all the window Pin
payal33530-Aug-06 19:21
payal33530-Aug-06 19:21 
GeneralRe: Show Desktop Problem-Minimizes all the window Pin
Nibu babu thomas30-Aug-06 19:37
Nibu babu thomas30-Aug-06 19:37 
QuestionContext menu problem Pin
gajendrakashyap29-Aug-06 20:19
gajendrakashyap29-Aug-06 20:19 
AnswerRe: Context menu problem Pin
Hamid_RT29-Aug-06 21:52
Hamid_RT29-Aug-06 21:52 
GeneralRe: Context menu problem Pin
gajendrakashyap29-Aug-06 22:07
gajendrakashyap29-Aug-06 22:07 
GeneralRe: Context menu problem Pin
Hamid_RT29-Aug-06 22:38
Hamid_RT29-Aug-06 22:38 
GeneralRe: Context menu problem Pin
gajendrakashyap29-Aug-06 23:06
gajendrakashyap29-Aug-06 23:06 
GeneralRe: Context menu problem Pin
Hamid_RT30-Aug-06 2:36
Hamid_RT30-Aug-06 2:36 
GeneralRe: Context menu problem Pin
gajendrakashyap30-Aug-06 3:29
gajendrakashyap30-Aug-06 3:29 

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.