Click here to Skip to main content
15,910,878 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Challenging GotW 66's moral Pin
peterchen28-Dec-07 2:38
peterchen28-Dec-07 2:38 
GeneralRe: Challenging GotW 66's moral Pin
George_George28-Dec-07 3:40
George_George28-Dec-07 3:40 
GeneralRe: Challenging GotW 66's moral Pin
Member 75496028-Dec-07 10:42
Member 75496028-Dec-07 10:42 
GeneralRe: Challenging GotW 66's moral Pin
George_George28-Dec-07 19:05
George_George28-Dec-07 19:05 
GeneralRe: Challenging GotW 66's moral Pin
Member 75496028-Dec-07 20:32
Member 75496028-Dec-07 20:32 
GeneralRe: Challenging GotW 66's moral Pin
George_George28-Dec-07 23:28
George_George28-Dec-07 23:28 
GeneralRe: Challenging GotW 66's moral Pin
Member 75496029-Dec-07 4:47
Member 75496029-Dec-07 4:47 
GeneralRe: Challenging GotW 66's moral Pin
George_George29-Dec-07 19:52
George_George29-Dec-07 19:52 
GeneralPlease let me ask again about creating unicode file. Pin
xanagan66626-Dec-07 19:07
xanagan66626-Dec-07 19:07 
GeneralRe: Please let me ask again about creating unicode file. Pin
Maxwell Chen26-Dec-07 20:17
Maxwell Chen26-Dec-07 20:17 
GeneralRe: Please let me ask again about creating unicode file. Pin
xanagan66626-Dec-07 22:59
xanagan66626-Dec-07 22:59 
GeneralRe: Please let me ask again about creating unicode file. Pin
Maxwell Chen26-Dec-07 23:10
Maxwell Chen26-Dec-07 23:10 
GeneralDetailed view Pin
john563226-Dec-07 19:07
john563226-Dec-07 19:07 
GeneralRe: Detailed view Pin
CPallini26-Dec-07 21:21
mveCPallini26-Dec-07 21:21 
GeneralRe: Detailed view Pin
Nishad S26-Dec-07 22:59
Nishad S26-Dec-07 22:59 
Questioncan anybody tell me why the size of the class is 16 Pin
philiptabraham26-Dec-07 18:59
philiptabraham26-Dec-07 18:59 
AnswerRe: can anybody tell me why the size of the class is 16 Pin
Maxwell Chen26-Dec-07 19:47
Maxwell Chen26-Dec-07 19:47 
There are "paddings" between some members of a structure. This is for convenience for the CPU to access. But you can change the padding size.

To view the positions and the sizes of paddings, you can list the addresses of each members as below.
EXP obj;
printf("obj.c1: 0x%p \nobj.c2: 0x%p \nobj.i1: 0x%p \n", &obj.c1, &obj.c2, &obj.i1);



Maxwell Chen

AnswerRe: can anybody tell me why the size of the class is 16 Pin
Haroon Sarwar26-Dec-07 21:44
Haroon Sarwar26-Dec-07 21:44 
QuestionOpening a file with name in UNICODE format Pin
Ajay L D26-Dec-07 18:44
Ajay L D26-Dec-07 18:44 
GeneralRe: Opening a file with name in UNICODE format [modified] Pin
Maxwell Chen26-Dec-07 19:28
Maxwell Chen26-Dec-07 19:28 
GeneralRe: Opening a file with name in UNICODE format Pin
Ajay L D26-Dec-07 21:31
Ajay L D26-Dec-07 21:31 
GeneralRe: Opening a file with name in UNICODE format [modified] Pin
Maxwell Chen26-Dec-07 22:00
Maxwell Chen26-Dec-07 22:00 
GeneralRegarding taking video data from camera Pin
adiveppanavar26-Dec-07 18:37
adiveppanavar26-Dec-07 18:37 
GeneralShell Context Menu Pin
john563226-Dec-07 18:29
john563226-Dec-07 18:29 
GeneralRe: Shell Context Menu Pin
Naveen26-Dec-07 21:00
Naveen26-Dec-07 21:00 

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.