Click here to Skip to main content
16,011,585 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Virtual base class constructor Pin
CPallini23-Mar-08 5:25
mveCPallini23-Mar-08 5:25 
GeneralRe: Virtual base class constructor Pin
George_George23-Mar-08 19:34
George_George23-Mar-08 19:34 
GeneralRe: Virtual base class constructor Pin
CPallini23-Mar-08 22:25
mveCPallini23-Mar-08 22:25 
GeneralRe: Virtual base class constructor Pin
George_George23-Mar-08 22:53
George_George23-Mar-08 22:53 
GeneralRe: Virtual base class constructor Pin
CPallini23-Mar-08 23:45
mveCPallini23-Mar-08 23:45 
GeneralRe: Virtual base class constructor Pin
George_George24-Mar-08 0:11
George_George24-Mar-08 0:11 
GeneralRe: Virtual base class constructor Pin
CPallini24-Mar-08 0:29
mveCPallini24-Mar-08 0:29 
GeneralRe: Virtual base class constructor Pin
George_George24-Mar-08 3:01
George_George24-Mar-08 3:01 
Thanks CPallini,


Great! Two more comments,

1.

I noticed that the __vfptr array in AB and in AC are different (0x0041574c and 0x00415740), means the vtable for AB and AC sub-object are different?

__vfptr	0x0041574c const ABAC::`vftable'{for `AB'}	*
__vfptr	0x00415740 const ABAC::`vftable'{for `AC'}	*


2.

__vfptr	0x0041574c const ABAC::`vftable'{for `AB'}	*
[0]	0x00411136 ABAC::do_things(int)	*


In my understanding, __vfptr is an array of function pointers. [0] is the value of the 1st function pointer in vtable, right?

So, 0x00411136 means function ABAC::do_things(int) resides in address 0x00411136?


regards,
George
GeneralRe: Virtual base class constructor Pin
CPallini24-Mar-08 6:11
mveCPallini24-Mar-08 6:11 
GeneralRe: Virtual base class constructor Pin
George_George24-Mar-08 21:26
George_George24-Mar-08 21:26 
GeneralRe: Virtual base class constructor Pin
CPallini24-Mar-08 23:36
mveCPallini24-Mar-08 23:36 
GeneralRe: Virtual base class constructor Pin
George_George25-Mar-08 3:00
George_George25-Mar-08 3:00 
GeneralRe: Virtual base class constructor Pin
CPallini25-Mar-08 5:08
mveCPallini25-Mar-08 5:08 
GeneralRe: Virtual base class constructor Pin
George_George25-Mar-08 20:36
George_George25-Mar-08 20:36 
GeneralRe: Virtual base class constructor Pin
CPallini25-Mar-08 22:45
mveCPallini25-Mar-08 22:45 
GeneralRe: Virtual base class constructor Pin
George_George25-Mar-08 23:30
George_George25-Mar-08 23:30 
Generalcode for active x controls in vc++ Pin
kumartnvr23-Mar-08 2:54
kumartnvr23-Mar-08 2:54 
GeneralRe: code for active x controls in vc++ Pin
CPallini23-Mar-08 4:20
mveCPallini23-Mar-08 4:20 
Generalextended style problem, compiles but not take effect Pin
followait22-Mar-08 22:49
followait22-Mar-08 22:49 
QuestionRe: extended style problem, compiles but not take effect Pin
CPallini23-Mar-08 0:30
mveCPallini23-Mar-08 0:30 
GeneralRe: extended style problem, compiles but not take effect Pin
followait23-Mar-08 0:57
followait23-Mar-08 0:57 
Questioni want to make usb control system~give me tip please~ Pin
Jung Seng Won22-Mar-08 19:27
Jung Seng Won22-Mar-08 19:27 
GeneralRe: i want to make usb control system~give me tip please~ Pin
CPallini23-Mar-08 0:36
mveCPallini23-Mar-08 0:36 
QuestionUnhandle exception in DAO350.dll Pin
clever10122-Mar-08 17:27
clever10122-Mar-08 17:27 
GeneralRe: Unhandle exception in DAO350.dll Pin
Mark Salsbery23-Mar-08 7:17
Mark Salsbery23-Mar-08 7:17 

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.