Click here to Skip to main content
15,902,938 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: selection problem --- Pin
David Crow9-Aug-04 3:16
David Crow9-Aug-04 3:16 
GeneralRe: selection problem --- Pin
John R. Shaw9-Aug-04 4:08
John R. Shaw9-Aug-04 4:08 
GeneralDream project for D R M receivers Pin
samandmag9-Aug-04 1:59
samandmag9-Aug-04 1:59 
GeneralNon-uniform width button in toolbar Pin
gokings9-Aug-04 1:53
gokings9-Aug-04 1:53 
GeneralRe: Non-uniform width button in toolbar Pin
John R. Shaw9-Aug-04 4:35
John R. Shaw9-Aug-04 4:35 
GeneralRe: Non-uniform width button in toolbar Pin
gokings9-Aug-04 7:39
gokings9-Aug-04 7:39 
Generalsizeof(class) question Pin
kfaday9-Aug-04 1:43
kfaday9-Aug-04 1:43 
GeneralRe: sizeof(class) question Pin
gokings9-Aug-04 1:50
gokings9-Aug-04 1:50 
Adding a static member does not affect the size because a static member does not exist in an object (instantiation) of the class. The memory for the static member is allocated in ONE place, not for each object.

The reason that the size increases when you add a virtual method, is that the object needs a pointer to the VTable. This is a table of pointers, one for each virtual method. This table is specific to your class. Each object of the class will contain a pointer to this VTable. The size of this pointer is 4 bytes.


GeneralRe: sizeof(class) question Pin
kfaday9-Aug-04 13:15
kfaday9-Aug-04 13:15 
GeneralOperator for casting a class to void* Pin
kfaday9-Aug-04 1:40
kfaday9-Aug-04 1:40 
GeneralRe: Overloading Pin
4apai9-Aug-04 1:47
4apai9-Aug-04 1:47 
GeneralRe: Operator for casting a class to void* Pin
David Crow9-Aug-04 2:35
David Crow9-Aug-04 2:35 
GeneralRe: Operator for casting a class to void* Pin
kfaday9-Aug-04 13:14
kfaday9-Aug-04 13:14 
GeneralRe: Operator for casting a class to void* Pin
David Crow10-Aug-04 2:44
David Crow10-Aug-04 2:44 
GeneralDynamic Toolbar :sigh: Pin
rerereerer9-Aug-04 1:31
rerereerer9-Aug-04 1:31 
GeneralRe: Dynamic Toolbar :sigh: Pin
John R. Shaw9-Aug-04 5:28
John R. Shaw9-Aug-04 5:28 
GeneralTerminal Services Client. IMsTscAx Pin
4apai9-Aug-04 1:27
4apai9-Aug-04 1:27 
GeneralObtaining screen dimensions Pin
gokings9-Aug-04 1:16
gokings9-Aug-04 1:16 
GeneralRe: Obtaining screen dimensions Pin
4apai9-Aug-04 1:30
4apai9-Aug-04 1:30 
GeneralRe: Obtaining screen dimensions Pin
gokings9-Aug-04 1:57
gokings9-Aug-04 1:57 
GeneralRe: Obtaining screen dimensions Pin
V.9-Aug-04 1:42
professionalV.9-Aug-04 1:42 
GeneralRe: Obtaining screen dimensions Pin
gokings9-Aug-04 1:56
gokings9-Aug-04 1:56 
GeneralOne more... Pin
Ravi Bhavnani9-Aug-04 2:50
professionalRavi Bhavnani9-Aug-04 2:50 
GeneralCedit control, paste problem Pin
Safika9-Aug-04 0:11
Safika9-Aug-04 0:11 
GeneralRe: Cedit control, paste problem Pin
Jaime Stuardo9-Aug-04 3:55
Jaime Stuardo9-Aug-04 3:55 

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.