Click here to Skip to main content
15,922,574 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: floating point comparision Pin
#realJSOP15-Jul-07 2:11
professional#realJSOP15-Jul-07 2:11 
QuestionLNK2001 Error Pin
Andy H13-Jul-07 5:52
Andy H13-Jul-07 5:52 
AnswerRe: LNK2001 Error Pin
CPallini13-Jul-07 5:57
mveCPallini13-Jul-07 5:57 
GeneralRe: LNK2001 Error Pin
Andy H13-Jul-07 9:10
Andy H13-Jul-07 9:10 
QuestionRe: LNK2001 Error Pin
CPallini13-Jul-07 9:28
mveCPallini13-Jul-07 9:28 
AnswerRe: LNK2001 Error Pin
Cyrilix13-Jul-07 20:01
Cyrilix13-Jul-07 20:01 
GeneralRe: LNK2001 Error Pin
CPallini13-Jul-07 20:39
mveCPallini13-Jul-07 20:39 
QuestionVirtual Table Pin
tom groezer13-Jul-07 4:37
tom groezer13-Jul-07 4:37 
class A<br />
{<br />
public:<br />
  virtual void f(){cout << "I'm into base \n";}<br />
};<br />
<br />
class B :  public A<br />
{<br />
public:<br />
 virtual void f(){cout << "I'm into derived \n";} <br />
};


In the above code will there be two virtual tables that will be created or the creation of a virtual table depends on what objects is being created. Lets say if a pointer to derived class B is obtained by doing a static_cast on the pointer returned from a dynamic creation of object of class A when I see the debugger it shows the __vfptr to some address with const A::'vftable'. Does it mean that there is only one vtable that is created.

So basically the query boils down to the fact that how many vtable are created on declaration of classes with virtual functions.
AnswerRe: Virtual Table Pin
The Wizard of Doze13-Jul-07 9:19
The Wizard of Doze13-Jul-07 9:19 
AnswerRe: Virtual Table Pin
ThatsAlok13-Jul-07 18:37
ThatsAlok13-Jul-07 18:37 
QuestionSequence of building projects in workspace Pin
Nandu_77b13-Jul-07 4:25
Nandu_77b13-Jul-07 4:25 
AnswerRe: Sequence of building projects in workspace Pin
Cedric Moonen13-Jul-07 4:38
Cedric Moonen13-Jul-07 4:38 
GeneralRe: Sequence of building projects in workspace Pin
Nandu_77b13-Jul-07 4:57
Nandu_77b13-Jul-07 4:57 
GeneralRe: Sequence of building projects in workspace Pin
David Crow13-Jul-07 5:09
David Crow13-Jul-07 5:09 
AnswerRe: Sequence of building projects in workspace Pin
Nibu babu thomas13-Jul-07 5:00
Nibu babu thomas13-Jul-07 5:00 
GeneralRe: Sequence of building projects in workspace Pin
Nandu_77b16-Jul-07 1:04
Nandu_77b16-Jul-07 1:04 
QuestionTrack the CPU usage? Pin
bosfan13-Jul-07 4:06
bosfan13-Jul-07 4:06 
AnswerRe: Track the CPU usage? Pin
David Crow13-Jul-07 4:18
David Crow13-Jul-07 4:18 
GeneralRe: Track the CPU usage? Pin
bosfan13-Jul-07 4:58
bosfan13-Jul-07 4:58 
GeneralRe: Track the CPU usage? Pin
bosfan20-Jul-07 2:31
bosfan20-Jul-07 2:31 
QuestionRe: Track the CPU usage? Pin
David Crow20-Jul-07 2:34
David Crow20-Jul-07 2:34 
Questioncan any body tell me about ..........see message [modified] Pin
rajbhansingh13-Jul-07 3:52
rajbhansingh13-Jul-07 3:52 
GeneralRe: can any body tell me about ..........see message Pin
perle113-Jul-07 3:57
perle113-Jul-07 3:57 
AnswerRe: can any body tell me about ..........see message Pin
ThatsAlok13-Jul-07 18:47
ThatsAlok13-Jul-07 18:47 
GeneralRe: can any body tell me about ..........see message Pin
rajbhansingh13-Jul-07 20:08
rajbhansingh13-Jul-07 20:08 

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.