Click here to Skip to main content
15,887,349 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: How to reduce exe size? Pin
harold aptroot27-Sep-09 4:20
harold aptroot27-Sep-09 4:20 
GeneralRe: How to reduce exe size? Pin
Iain Clarke, Warrior Programmer27-Sep-09 10:40
Iain Clarke, Warrior Programmer27-Sep-09 10:40 
AnswerRe: How to reduce exe size? Pin
Luc Pattyn27-Sep-09 12:20
sitebuilderLuc Pattyn27-Sep-09 12:20 
AnswerRe: How to reduce exe size? Pin
Joe Woodbury27-Sep-09 17:00
professionalJoe Woodbury27-Sep-09 17:00 
AnswerRe: How to reduce exe size? Pin
CPallini27-Sep-09 23:34
mveCPallini27-Sep-09 23:34 
GeneralRe: How to reduce exe size? Pin
includeh1028-Sep-09 5:02
includeh1028-Sep-09 5:02 
QuestionAn unexpected output Pin
carter200027-Sep-09 0:34
carter200027-Sep-09 0:34 
AnswerRe: An unexpected output Pin
N a v a n e e t h27-Sep-09 1:07
N a v a n e e t h27-Sep-09 1:07 
carter2000 wrote:
Why the output is '32', while my expected is '28'.


How are you calculating 28? By adding size of individual members? If yes, see what MSDN is saying.

When the sizeof operator is applied to a class, struct, or union type, the result is the number of bytes in an object of that type, plus any padding added to align members on word boundaries. The result does not necessarily correspond to the size calculated by adding the storage requirements of the individual members.


GeneralRe: An unexpected output Pin
carter200028-Sep-09 4:47
carter200028-Sep-09 4:47 
AnswerRe: An unexpected output Pin
Stuart Dootson27-Sep-09 4:17
professionalStuart Dootson27-Sep-09 4:17 
GeneralRe: An unexpected output Pin
carter200028-Sep-09 4:59
carter200028-Sep-09 4:59 
GeneralRe: An unexpected output Pin
Stuart Dootson28-Sep-09 6:18
professionalStuart Dootson28-Sep-09 6:18 
GeneralRe: An unexpected output Pin
carter200028-Sep-09 16:19
carter200028-Sep-09 16:19 
QuestionFile Creation in share mode in VC++ Pin
neeraja3126-Sep-09 22:34
neeraja3126-Sep-09 22:34 
AnswerRe: File Creation in share mode in VC++ Pin
Richard MacCutchan27-Sep-09 1:15
mveRichard MacCutchan27-Sep-09 1:15 
GeneralRe: File Creation in share mode in VC++ Pin
neeraja3127-Sep-09 2:37
neeraja3127-Sep-09 2:37 
GeneralRe: File Creation in share mode in VC++ Pin
Richard MacCutchan27-Sep-09 6:09
mveRichard MacCutchan27-Sep-09 6:09 
QuestionRe: File Creation in share mode in VC++ Pin
David Crow28-Sep-09 4:08
David Crow28-Sep-09 4:08 
AnswerRe: File Creation in share mode in VC++ Pin
sunlin727-Sep-09 3:01
sunlin727-Sep-09 3:01 
GeneralRe: File Creation in share mode in VC++ Pin
neeraja3127-Sep-09 3:07
neeraja3127-Sep-09 3:07 
AnswerRe: File Creation in share mode in VC++ Pin
David Crow28-Sep-09 4:15
David Crow28-Sep-09 4:15 
QuestionIE8 problem Pin
sharanu26-Sep-09 21:49
sharanu26-Sep-09 21:49 
AnswerRe: IE8 problem Pin
Richard MacCutchan27-Sep-09 1:19
mveRichard MacCutchan27-Sep-09 1:19 
QuestionAre file sizes the same under different operating systems? Pin
includeh1026-Sep-09 18:18
includeh1026-Sep-09 18:18 
AnswerRe: Are file sizes the same under different operating systems? Pin
Richard MacCutchan27-Sep-09 1:26
mveRichard MacCutchan27-Sep-09 1:26 

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.