Click here to Skip to main content
15,921,203 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: find in vector !!! Pin
Hadi Rezaee24-Jul-02 7:09
Hadi Rezaee24-Jul-02 7:09 
GeneralRe: find in vector !!! Pin
Phil Boyd24-Jul-02 8:32
Phil Boyd24-Jul-02 8:32 
Generala few questions Pin
NickOne24-Jul-02 6:27
NickOne24-Jul-02 6:27 
GeneralRe: a few questions Pin
Christian Graus24-Jul-02 12:35
protectorChristian Graus24-Jul-02 12:35 
GeneralPrinting a Report Via Microsoft Word Pin
SanShou24-Jul-02 5:59
SanShou24-Jul-02 5:59 
QuestionMultiple Inheritance? Pin
Peter Liddle24-Jul-02 5:58
Peter Liddle24-Jul-02 5:58 
AnswerRe: Multiple Inheritance? Pin
Tomasz Sowinski24-Jul-02 6:28
Tomasz Sowinski24-Jul-02 6:28 
GeneralRe: Multiple Inheritance? Pin
Philippe Mori24-Jul-02 7:55
Philippe Mori24-Jul-02 7:55 
MFC RTTI is older than standard C++ RTTI and is more limited and manual. If MFC does the call to IsKindOf when it crashes, then you may not ba able to replace it with C++ RTTI (dynamic_cast) as suggested in another reply.

As an alternative, you may check your derivation order. Does your class first derives from the MFC class then from your class (which should probably not derives from CObject). If not, changing that may be a fix...

It is possible that MFC RTTI rely on the fact that the derived class start at the same adress as the base class but I am not sure that there is such a restriction. It's just a guess.

And does your class is properly defined for MFC RTTI uses? Maybe you should add some MFC macros in your derived class. I don't know... I think that it is optional as long as the information is not required. But maybe the problem is that the information is required by document templates to create the view.

Philippe Mori
AnswerRe: Multiple Inheritance? Pin
Joaquín M López Muñoz24-Jul-02 6:59
Joaquín M López Muñoz24-Jul-02 6:59 
Generalnewbie question about strcpy and pointers Pin
ns24-Jul-02 5:47
ns24-Jul-02 5:47 
GeneralRe: newbie question about strcpy and pointers Pin
Peter Liddle24-Jul-02 6:00
Peter Liddle24-Jul-02 6:00 
GeneralRe: newbie question about strcpy and pointers Pin
Chris Losinger24-Jul-02 6:01
professionalChris Losinger24-Jul-02 6:01 
GeneralRe: newbie question about strcpy and pointers Pin
ns24-Jul-02 6:26
ns24-Jul-02 6:26 
GeneralRe: newbie question about strcpy and pointers Pin
Ravi Bhavnani24-Jul-02 6:56
professionalRavi Bhavnani24-Jul-02 6:56 
GeneralRe: newbie question about strcpy and pointers Pin
SanShou24-Jul-02 6:35
SanShou24-Jul-02 6:35 
GeneralRe: newbie question about strcpy and pointers Pin
Philippe Mori24-Jul-02 8:03
Philippe Mori24-Jul-02 8:03 
GeneralTROLL QUESTION Pin
troll-124-Jul-02 5:32
susstroll-124-Jul-02 5:32 
GeneralRe: TROLL QUESTION Pin
Tomasz Sowinski24-Jul-02 5:46
Tomasz Sowinski24-Jul-02 5:46 
GeneralDialog Bar Docking Pin
BishGada24-Jul-02 5:30
BishGada24-Jul-02 5:30 
Questionhow can i switch between programs Pin
f.o.b24-Jul-02 5:30
f.o.b24-Jul-02 5:30 
AnswerRe: how can i switch between programs Pin
Paul M Watt24-Jul-02 7:06
mentorPaul M Watt24-Jul-02 7:06 
GeneralRe: how can i switch between programs Pin
Scott H. Settlemier24-Jul-02 8:56
Scott H. Settlemier24-Jul-02 8:56 
GeneralI'm doing something silly - help! Pin
ns24-Jul-02 5:18
ns24-Jul-02 5:18 
GeneralRe: I'm doing something silly - help! Pin
Tomasz Sowinski24-Jul-02 5:25
Tomasz Sowinski24-Jul-02 5:25 
GeneralRe: I'm doing something silly - help! Pin
ns24-Jul-02 5:54
ns24-Jul-02 5:54 

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.