Click here to Skip to main content
15,910,872 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionHow to close A particular instance with WM_CLOSE Pin
punav5-Mar-09 18:59
punav5-Mar-09 18:59 
AnswerRe: How to close A particular instance with WM_CLOSE Pin
Naveen5-Mar-09 19:15
Naveen5-Mar-09 19:15 
AnswerRe: How to close A particular instance with WM_CLOSE Pin
«_Superman_»5-Mar-09 19:33
professional«_Superman_»5-Mar-09 19:33 
QuestionVC2008 IDE enviornment showing 2 files with same name Pin
VCProgrammer5-Mar-09 18:39
VCProgrammer5-Mar-09 18:39 
Questionlinking of MFC dialog based application with Resource DLL Pin
Purish Dwivedi5-Mar-09 17:48
Purish Dwivedi5-Mar-09 17:48 
AnswerRe: linking of MFC dialog based application with Resource DLL Pin
«_Superman_»5-Mar-09 18:00
professional«_Superman_»5-Mar-09 18:00 
QuestionRe: linking of MFC dialog based application with Resource DLL Pin
Purish Dwivedi5-Mar-09 18:23
Purish Dwivedi5-Mar-09 18:23 
QuestionCalling child class methods from parent class pointers Pin
mjackson115-Mar-09 17:41
mjackson115-Mar-09 17:41 
What I am trying to do is create a base class that provides a basic interface and several child classes that implement the interface and extend it a little bit. I would then like to create a child class (at run time using pointers to the base class) whose type is determined by data in a table. So far so good.

In the code which has the pointer I am trying to call some of the functions that extend the interface depending on the situation. Compiler chokes (rightly) telling me the virtual base class doesn't implement those functions.

I can get around this by making the virtual base class define all the possible functions in the child classes and put dummy implementations in some child classes but it seems in-elegant.

Is there a better way to do this?
AnswerRe: Calling child class methods from parent class pointers Pin
«_Superman_»5-Mar-09 17:48
professional«_Superman_»5-Mar-09 17:48 
GeneralRe: Calling child class methods from parent class pointers Pin
mjackson116-Mar-09 4:59
mjackson116-Mar-09 4:59 
Questionstring class help needed Pin
CHYGO5-Mar-09 16:36
CHYGO5-Mar-09 16:36 
AnswerRe: string class help needed Pin
Naveen5-Mar-09 16:52
Naveen5-Mar-09 16:52 
GeneralRe: string class help needed Pin
CHYGO5-Mar-09 19:45
CHYGO5-Mar-09 19:45 
GeneralRe: string class help needed Pin
CHYGO5-Mar-09 20:18
CHYGO5-Mar-09 20:18 
GeneralRe: string class help needed Pin
Naveen5-Mar-09 20:22
Naveen5-Mar-09 20:22 
GeneralRe: string class help needed Pin
CHYGO5-Mar-09 21:06
CHYGO5-Mar-09 21:06 
GeneralRe: string class help needed Pin
David Crow6-Mar-09 3:31
David Crow6-Mar-09 3:31 
QuestionIs Volume online and ready? Pin
Peter Weyzen5-Mar-09 14:59
Peter Weyzen5-Mar-09 14:59 
QuestionRational Number constructor Pin
aab199025-Mar-09 13:20
aab199025-Mar-09 13:20 
AnswerRe: Rational Number constructor Pin
Cedric Moonen5-Mar-09 20:22
Cedric Moonen5-Mar-09 20:22 
QuestionRe: Rational Number constructor Pin
CPallini5-Mar-09 21:09
mveCPallini5-Mar-09 21:09 
QuestionRe: Rational Number constructor Pin
David Crow6-Mar-09 3:40
David Crow6-Mar-09 3:40 
QuestionIterating string to add escape sequence. Pin
mmayur5-Mar-09 11:27
mmayur5-Mar-09 11:27 
AnswerRe: Iterating string to add escape sequence. Pin
«_Superman_»5-Mar-09 17:22
professional«_Superman_»5-Mar-09 17:22 
QuestionRe: Iterating string to add escape sequence. Pin
David Crow6-Mar-09 3:43
David Crow6-Mar-09 3:43 

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.