Click here to Skip to main content
15,921,577 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Questionwhere to do the query? Pin
JabraJabra1-Jul-04 22:15
JabraJabra1-Jul-04 22:15 
AnswerRe: where to do the query? Pin
RChin2-Jul-04 0:21
RChin2-Jul-04 0:21 
GeneralPolymorphism in C++ Pin
gutsyfarid1-Jul-04 21:27
gutsyfarid1-Jul-04 21:27 
GeneralRe: Polymorphism in C++ Pin
Johnny ²2-Jul-04 2:20
Johnny ²2-Jul-04 2:20 
GeneralRe: Polymorphism in C++ Pin
mfareed_baig2-Jul-04 2:58
mfareed_baig2-Jul-04 2:58 
GeneralRe: Polymorphism in C++ Pin
Johan Rosengren2-Jul-04 6:43
Johan Rosengren2-Jul-04 6:43 
GeneralRe: Polymorphism in C++ Pin
Paul Ranson2-Jul-04 3:28
Paul Ranson2-Jul-04 3:28 
GeneralRe: Polymorphism in C++ Pin
Blake Miller2-Jul-04 7:55
Blake Miller2-Jul-04 7:55 
It may have everything to do with keeping VTables on 4-byte boundaries.
Since VTables will resolve into pointers to functions in derived classes, they want to keep them aligned so the performance on the CPU is better.
As an experiment, you can try changing

public:
int b;
base()

into

public:
byte b;
base()

And you will still probably get 12.

Then try

public:
int b;
int c;
base()

And you might still get 12.

I think it has do do with optimizing pointers to tables of function pointers, myself.


Generalgetting quota (space) for an logged-in user in FTP Pin
harinat1-Jul-04 21:25
harinat1-Jul-04 21:25 
GeneralRe: getting quota (space) for an logged-in user in FTP Pin
Ted Ferenc1-Jul-04 21:45
Ted Ferenc1-Jul-04 21:45 
GeneralRe: getting quota (space) for an logged-in user in FTP Pin
harinat1-Jul-04 22:17
harinat1-Jul-04 22:17 
GeneralRe: getting quota (space) for an logged-in user in FTP Pin
Ted Ferenc1-Jul-04 23:00
Ted Ferenc1-Jul-04 23:00 
QuestionHow to add functionality on 'OK' button on a property sheet? Pin
Rajesh_K_Sharma1-Jul-04 21:21
Rajesh_K_Sharma1-Jul-04 21:21 
AnswerRe: How to add functionality on 'OK' button on a property sheet? Pin
Antony M Kancidrowski2-Jul-04 1:58
Antony M Kancidrowski2-Jul-04 1:58 
AnswerRe: How to add functionality on 'OK' button on a property sheet? Pin
PJ Arends2-Jul-04 17:55
professionalPJ Arends2-Jul-04 17:55 
GeneralData base Question ( VC++ and ACCESS) Pin
Anonymous1-Jul-04 20:43
Anonymous1-Jul-04 20:43 
GeneralRe: Data base Question ( VC++ and ACCESS) Pin
RChin2-Jul-04 0:36
RChin2-Jul-04 0:36 
QuestionHow to change Menu caption dynamically? Pin
uus991-Jul-04 20:37
uus991-Jul-04 20:37 
AnswerRe: How to change Menu caption dynamically? Pin
bneacetp1-Jul-04 20:53
bneacetp1-Jul-04 20:53 
GeneralRe: How to change Menu caption dynamically? Pin
uus991-Jul-04 21:13
uus991-Jul-04 21:13 
GeneralRe: How to change Menu caption dynamically? Pin
Antony M Kancidrowski2-Jul-04 2:22
Antony M Kancidrowski2-Jul-04 2:22 
GeneralRe: How to change Menu caption dynamically? Pin
uus992-Jul-04 4:16
uus992-Jul-04 4:16 
GeneralRe: How to change Menu caption dynamically? Pin
uus992-Jul-04 4:32
uus992-Jul-04 4:32 
GeneralSubclassing Buttons on CPropertySheet Pin
Monty21-Jul-04 19:46
Monty21-Jul-04 19:46 
GeneralRe: Subclassing Buttons on CPropertySheet Pin
PJ Arends2-Jul-04 17:56
professionalPJ Arends2-Jul-04 17:56 

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.