Click here to Skip to main content
15,914,820 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: No of Vtables Pin
Stephen Hewitt18-Sep-06 0:37
Stephen Hewitt18-Sep-06 0:37 
AnswerRe: No of Vtables Pin
_AnsHUMAN_ 18-Sep-06 0:41
_AnsHUMAN_ 18-Sep-06 0:41 
GeneralRe: No of Vtables Pin
Krishnatv18-Sep-06 0:50
Krishnatv18-Sep-06 0:50 
GeneralRe: No of Vtables Pin
_AnsHUMAN_ 18-Sep-06 0:53
_AnsHUMAN_ 18-Sep-06 0:53 
GeneralRe: No of Vtables Pin
Krishnatv18-Sep-06 0:56
Krishnatv18-Sep-06 0:56 
GeneralRe: No of Vtables Pin
_AnsHUMAN_ 18-Sep-06 1:03
_AnsHUMAN_ 18-Sep-06 1:03 
GeneralRe: No of Vtables Pin
prasad_som18-Sep-06 2:15
prasad_som18-Sep-06 2:15 
GeneralRe: No of Vtables Pin
_AnsHUMAN_ 18-Sep-06 2:22
_AnsHUMAN_ 18-Sep-06 2:22 
prasad_som wrote:
I think, in case of single inheritance, all classes in heirarchy share same VTable

AFAIK, the compiler creates a separate vtable for each class; adds a pointer to this vtable, called the virtual table pointer or vpointer, (often the first member) and generates hidden code in the constructor for each class to initialize its vpointer to the address of the corresponding vtable. There is one vtable for a class that contains a virtual function and a vtable associated to each of the class that are derived from the base class containing that virtual function.

Somethings seem HARD to do, until we know how to do them.
Wink | ;-) _AnShUmAn_

GeneralRe: No of Vtables Pin
prasad_som18-Sep-06 3:09
prasad_som18-Sep-06 3:09 
GeneralRe: No of Vtables Pin
Prakash Nadar18-Sep-06 2:40
Prakash Nadar18-Sep-06 2:40 
QuestionStack Overflow Pin
vijay_aroli18-Sep-06 0:22
vijay_aroli18-Sep-06 0:22 
AnswerRe: Stack Overflow Pin
toxcct18-Sep-06 0:24
toxcct18-Sep-06 0:24 
AnswerRe: Stack Overflow Pin
Stephen Hewitt18-Sep-06 0:26
Stephen Hewitt18-Sep-06 0:26 
QuestionRe: Stack Overflow [modified] Pin
vijay_aroli18-Sep-06 0:50
vijay_aroli18-Sep-06 0:50 
AnswerRe: Stack Overflow Pin
Anilkumar K V18-Sep-06 1:24
Anilkumar K V18-Sep-06 1:24 
QuestionRe: Stack Overflow Pin
David Crow18-Sep-06 5:15
David Crow18-Sep-06 5:15 
QuestionHow to hide a cmd window in a win32 Console App? Pin
sir_moreno17-Sep-06 23:51
sir_moreno17-Sep-06 23:51 
AnswerRe: How to hide a cmd window in a win32 Console App? Pin
Nibu babu thomas17-Sep-06 23:56
Nibu babu thomas17-Sep-06 23:56 
GeneralRe: How to hide a cmd window in a win32 Console App? Pin
sir_moreno18-Sep-06 0:09
sir_moreno18-Sep-06 0:09 
AnswerRe: How to hide a cmd window in a win32 Console App? Pin
Naveen18-Sep-06 0:09
Naveen18-Sep-06 0:09 
GeneralRe: How to hide a cmd window in a win32 Console App? Pin
sir_moreno18-Sep-06 0:20
sir_moreno18-Sep-06 0:20 
GeneralRe: How to hide a cmd window in a win32 Console App? Pin
Naveen18-Sep-06 0:33
Naveen18-Sep-06 0:33 
GeneralRe: How to hide a cmd window in a win32 Console App? Pin
sir_moreno18-Sep-06 1:00
sir_moreno18-Sep-06 1:00 
GeneralRe: How to hide a cmd window in a win32 Console App? Pin
Naveen18-Sep-06 1:07
Naveen18-Sep-06 1:07 
GeneralRe: How to hide a cmd window in a win32 Console App? Pin
sir_moreno18-Sep-06 1:18
sir_moreno18-Sep-06 1:18 

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.