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

C / C++ / MFC

 
AnswerRe: Focus Problem Pin
Mark Salsbery1-Sep-07 7:48
Mark Salsbery1-Sep-07 7:48 
AnswerRe: Focus Problem Pin
Gary R. Wheeler2-Sep-07 14:30
Gary R. Wheeler2-Sep-07 14:30 
NewsSuggestion to members [modified] Pin
chandu00431-Aug-07 21:46
chandu00431-Aug-07 21:46 
GeneralIndicate the prefix [SOLVED] in the subject when solved Pin
Russell'31-Aug-07 22:13
Russell'31-Aug-07 22:13 
GeneralRe: Indicate the prefix [SOLVED] in the subject when solved Pin
chandu00431-Aug-07 22:20
chandu00431-Aug-07 22:20 
GeneralRe: Indicate the prefix [SOLVED] in the subject when solved Pin
Russell'31-Aug-07 22:41
Russell'31-Aug-07 22:41 
GeneralRe: Suggestion to members Pin
Hamid_RT1-Sep-07 1:01
Hamid_RT1-Sep-07 1:01 
Questionwhy 2 vfptrs in case of virtual inheritance? Pin
Sameer_Thakur31-Aug-07 19:58
Sameer_Thakur31-Aug-07 19:58 
Hi all.
Here are the two classes one base and other Derived ( virtually inherited from Base)

Class Base
{
Public:
Virtual void FunB(){}
};

Class Derived: virtual public Base
{
Public:
Virtual void FunD(){}
};

When I derived class Derived virtually from Base, and when I saw the memory layout of objects of Derived in debug window; I saw two separate vfptrs; one for Base and one for Derived.
But if I do not derive class Derived virtually from Base, then there is only single vfptr in object of Derived class?
Why an extra vfptr is added/required in case of virtual inheritance?

Sameer Thakur

AnswerRe: why 2 vfptrs in case of virtual inheritance? Pin
Gary R. Wheeler2-Sep-07 4:36
Gary R. Wheeler2-Sep-07 4:36 
Questionconvert path to HTREEITEM [modified] Pin
revanth198531-Aug-07 19:08
revanth198531-Aug-07 19:08 
AnswerRe: path to HTREEITEM Pin
Hamid_RT31-Aug-07 21:27
Hamid_RT31-Aug-07 21:27 
GeneralRe: path to HTREEITEM Pin
revanth198531-Aug-07 22:27
revanth198531-Aug-07 22:27 
GeneralRe: path to HTREEITEM Pin
Hamid_RT1-Sep-07 0:56
Hamid_RT1-Sep-07 0:56 
AnswerRe: convert path to HTREEITEM Pin
Gary R. Wheeler2-Sep-07 4:42
Gary R. Wheeler2-Sep-07 4:42 
Questionresource,h control definition problem Pin
Caudata31-Aug-07 17:40
Caudata31-Aug-07 17:40 
AnswerRe: resource,h control definition problem Pin
chandu00431-Aug-07 18:15
chandu00431-Aug-07 18:15 
GeneralRe: resource.h control definition problem Pin
Caudata1-Sep-07 14:32
Caudata1-Sep-07 14:32 
AnswerRe: resource,h control definition problem Pin
Caudata1-Sep-07 18:32
Caudata1-Sep-07 18:32 
QuestionTrouble with const Pin
Leslie Sanford31-Aug-07 13:19
Leslie Sanford31-Aug-07 13:19 
AnswerRe: Trouble with const Pin
Mark Salsbery31-Aug-07 13:26
Mark Salsbery31-Aug-07 13:26 
GeneralRe: Trouble with const Pin
Leslie Sanford31-Aug-07 13:41
Leslie Sanford31-Aug-07 13:41 
GeneralRe: Trouble with const Pin
Mark Salsbery31-Aug-07 13:52
Mark Salsbery31-Aug-07 13:52 
QuestionRe: Trouble with const Pin
Mark Salsbery31-Aug-07 13:54
Mark Salsbery31-Aug-07 13:54 
AnswerRe: Trouble with const Pin
Leslie Sanford31-Aug-07 14:22
Leslie Sanford31-Aug-07 14:22 
GeneralRe: Trouble with const Pin
Mark Salsbery31-Aug-07 15:36
Mark Salsbery31-Aug-07 15:36 

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.