Click here to Skip to main content
15,898,134 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
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 
QuestionPrint Preview in FormView Pin
Shivarudrayya H26-Dec-07 18:09
Shivarudrayya H26-Dec-07 18:09 
GeneralRe: Print Preview in FormView Pin
wira1guys26-Dec-07 20:29
wira1guys26-Dec-07 20:29 
QuestionRe: Print Preview in FormView Pin
Shivarudrayya H26-Dec-07 20:37
Shivarudrayya H26-Dec-07 20:37 
GeneralRe: Print Preview in FormView Pin
Hamid_RT28-Dec-07 5:06
Hamid_RT28-Dec-07 5:06 
Questionhow to add OnInitDialog in VC8? Pin
hanlei000000000926-Dec-07 15:41
hanlei000000000926-Dec-07 15:41 
AnswerRe: how to add OnInitDialog in VC8? Pin
Sarath C26-Dec-07 16:29
Sarath C26-Dec-07 16:29 
AnswerRe: how to add OnInitDialog in VC8? Pin
David Crow27-Dec-07 4:24
David Crow27-Dec-07 4:24 
GeneralDLL Injection Pin
int01h26-Dec-07 14:11
int01h26-Dec-07 14:11 
GeneralRe: DLL Injection Pin
Sarath C26-Dec-07 14:23
Sarath C26-Dec-07 14:23 

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.