Click here to Skip to main content
15,889,651 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: pls help.....! Pin
krishna Vuppala26-Sep-07 2:15
krishna Vuppala26-Sep-07 2:15 
GeneralRe: pls help.....! Pin
ThatsAlok26-Sep-07 19:38
ThatsAlok26-Sep-07 19:38 
GeneralRe: pls help.....! Pin
David Crow26-Sep-07 2:48
David Crow26-Sep-07 2:48 
QuestionVirtual methods Pin
Waldermort25-Sep-07 23:16
Waldermort25-Sep-07 23:16 
AnswerRe: Virtual methods Pin
Russell'25-Sep-07 23:51
Russell'25-Sep-07 23:51 
AnswerRe: Virtual methods Pin
Cedric Moonen26-Sep-07 1:01
Cedric Moonen26-Sep-07 1:01 
GeneralRe: Virtual methods Pin
toxcct26-Sep-07 1:09
toxcct26-Sep-07 1:09 
GeneralRe: Virtual methods Pin
Waldermort26-Sep-07 3:47
Waldermort26-Sep-07 3:47 
The problem was that the derived method in class D was not being called and instead calling that of class B.

I realise only one method may be called, but in reality I need both methods in classes B and D to be called. I suppose the only way to do this is to call B::OnSth() explicitly from class D or to add a new virtual method in class B.

The type of behaviour I'm looking for is when class A, internally, calls DoSth(), then the code should call the method in class B THEN call the method in class D. Not exactly C++ standard I know.

As for the main problem, I fixed it.

Waldermort

GeneralRe: Virtual methods Pin
Roger Stoltz26-Sep-07 5:06
Roger Stoltz26-Sep-07 5:06 
GeneralRe: Virtual methods Pin
Waldermort26-Sep-07 5:19
Waldermort26-Sep-07 5:19 
GeneralRe: Virtual methods Pin
Roger Stoltz26-Sep-07 5:29
Roger Stoltz26-Sep-07 5:29 
GeneralRe: Virtual methods Pin
Waldermort26-Sep-07 5:37
Waldermort26-Sep-07 5:37 
GeneralRe: Virtual methods Pin
Waldermort26-Sep-07 6:28
Waldermort26-Sep-07 6:28 
GeneralRe: Virtual methods Pin
Roger Stoltz26-Sep-07 8:58
Roger Stoltz26-Sep-07 8:58 
GeneralRe: Virtual methods Pin
Waldermort27-Sep-07 5:49
Waldermort27-Sep-07 5:49 
QuestionDrawing a rectangle Pin
Maynka25-Sep-07 23:12
Maynka25-Sep-07 23:12 
AnswerRe: Drawing a rectangle Pin
Hamid_RT25-Sep-07 23:29
Hamid_RT25-Sep-07 23:29 
AnswerRe: Drawing a rectangle Pin
Russell'25-Sep-07 23:55
Russell'25-Sep-07 23:55 
Questionsize of char * Pin
baerten25-Sep-07 22:42
baerten25-Sep-07 22:42 
AnswerRe: size of char * Pin
Naveen25-Sep-07 22:52
Naveen25-Sep-07 22:52 
AnswerRe: size of char * Pin
Cedric Moonen25-Sep-07 22:59
Cedric Moonen25-Sep-07 22:59 
AnswerRe: size of char * Pin
Waldermort25-Sep-07 23:08
Waldermort25-Sep-07 23:08 
QuestionRe: size of char * Pin
David Crow26-Sep-07 2:51
David Crow26-Sep-07 2:51 
AnswerRe: size of char * Pin
Nemanja Trifunovic26-Sep-07 3:37
Nemanja Trifunovic26-Sep-07 3:37 
AnswerRe: size of char * Pin
Signal-926-Sep-07 14:53
Signal-926-Sep-07 14:53 

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.