Click here to Skip to main content
15,909,896 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: error : Building MFC application question Pin
RYU^^17-Sep-08 21:02
RYU^^17-Sep-08 21:02 
GeneralRe: error : Building MFC application question Pin
monsieur_jj17-Sep-08 21:06
monsieur_jj17-Sep-08 21:06 
GeneralRe: error : Building MFC application question Pin
C++myLife17-Sep-08 21:23
C++myLife17-Sep-08 21:23 
Questionvtable issue Pin
George_George17-Sep-08 19:11
George_George17-Sep-08 19:11 
AnswerRe: vtable issue Pin
Cedric Moonen17-Sep-08 20:14
Cedric Moonen17-Sep-08 20:14 
GeneralRe: vtable issue Pin
George_George17-Sep-08 20:21
George_George17-Sep-08 20:21 
GeneralRe: vtable issue Pin
Cedric Moonen17-Sep-08 20:42
Cedric Moonen17-Sep-08 20:42 
GeneralRe: vtable issue Pin
George_George17-Sep-08 22:00
George_George17-Sep-08 22:00 
Thanks Cédric!


I have modified the code to make foo and goo overridden in class Zoo, but foo and goo are still not in vtable. Any ideas?

Here is my updated code. Smile | :)

class IBase
{
public:
	virtual void func() = 0;
};

class IFoo : IBase
{
public:
	virtual void foo() { cout << "IFoo : IBase" << endl; }
};

class IGoo : IBase
{
public:
	virtual void goo() { cout << "IGoo : IBase" << endl; }
};

class Zoo : IFoo, IGoo
{
public:
	virtual void foo() { cout << "Zoo : IBase" << endl; }
	virtual void goo() { cout << "Zoo : IBase" << endl; }
	virtual void func() {cout << "Zoo : IBase" << endl; }
};

int main()
{
	Zoo z;

	return 0;
}



regards,
George
QuestionRe: vtable issue [modified] Pin
CPallini17-Sep-08 22:21
mveCPallini17-Sep-08 22:21 
AnswerRe: vtable issue Pin
George_George17-Sep-08 23:04
George_George17-Sep-08 23:04 
GeneralRe: vtable issue [modified] Pin
CPallini17-Sep-08 23:08
mveCPallini17-Sep-08 23:08 
GeneralRe: vtable issue Pin
George_George17-Sep-08 23:19
George_George17-Sep-08 23:19 
GeneralRe: vtable issue [modified] Pin
CPallini17-Sep-08 23:29
mveCPallini17-Sep-08 23:29 
GeneralRe: vtable issue Pin
George_George17-Sep-08 23:32
George_George17-Sep-08 23:32 
GeneralRe: vtable issue [modified] Pin
CPallini18-Sep-08 0:04
mveCPallini18-Sep-08 0:04 
GeneralRe: vtable issue Pin
George_George18-Sep-08 0:07
George_George18-Sep-08 0:07 
GeneralRe: vtable issue Pin
CPallini18-Sep-08 0:29
mveCPallini18-Sep-08 0:29 
GeneralRe: vtable issue Pin
George_George18-Sep-08 1:16
George_George18-Sep-08 1:16 
AnswerRe: vtable issue Pin
Cedric Moonen17-Sep-08 23:09
Cedric Moonen17-Sep-08 23:09 
GeneralRe: vtable issue Pin
George_George17-Sep-08 23:21
George_George17-Sep-08 23:21 
GeneralRe: vtable issue Pin
Cedric Moonen17-Sep-08 23:22
Cedric Moonen17-Sep-08 23:22 
GeneralRe: vtable issue Pin
George_George17-Sep-08 23:27
George_George17-Sep-08 23:27 
GeneralRe: vtable issue Pin
Cedric Moonen17-Sep-08 23:43
Cedric Moonen17-Sep-08 23:43 
GeneralRe: vtable issue Pin
George_George18-Sep-08 0:11
George_George18-Sep-08 0:11 
GeneralRe: vtable issue [modified] Pin
CPallini17-Sep-08 23:26
mveCPallini17-Sep-08 23:26 

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.