Click here to Skip to main content
15,913,587 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
General Looking for Developers to try new C++ XML interface. Pin
Stuart Konen25-Jun-05 20:09
Stuart Konen25-Jun-05 20:09 
GeneralRe: Looking for Developers to try new C++ XML interface. Pin
Trollslayer25-Jun-05 22:14
mentorTrollslayer25-Jun-05 22:14 
GeneralRe: Looking for Developers to try new C++ XML interface. Pin
Ravi Bhavnani26-Jun-05 3:06
professionalRavi Bhavnani26-Jun-05 3:06 
GeneralRe: Looking for Developers to try new C++ XML interface. Pin
Stuart Konen26-Jun-05 7:52
Stuart Konen26-Jun-05 7:52 
GeneralRe: Looking for Developers to try new C++ XML interface. Pin
ThatsAlok26-Jun-05 19:00
ThatsAlok26-Jun-05 19:00 
GeneralQuestion on IMPLEMENT_DYNCREATE In Multiple Inheritance Case Pin
yccheok25-Jun-05 19:44
yccheok25-Jun-05 19:44 
GeneralRe: Question on IMPLEMENT_DYNCREATE In Multiple Inheritance Case Pin
John M. Drescher26-Jun-05 4:16
John M. Drescher26-Jun-05 4:16 
GeneralRe: Question on IMPLEMENT_DYNCREATE In Multiple Inheritance Case Pin
Jose Lamas Rios26-Jun-05 16:54
Jose Lamas Rios26-Jun-05 16:54 
yccheok wrote:
If I wish to have my document object to have multiple inheritance (CDocument and another non-CObject object, which is created by hand), do I need to add any new stuff under

IMPLEMENT_DYNCREATE macro?


No, it isn't neither needed nor possible. MFC's macros and functions that deal with runtime type are designed with single inheritance in mind. However, you can make use of multiple inheritance as long as you:


  • Observe the usual cautions regarding multiple inheritance in general (i.e.: take care of multiple use of the same base class, etc.), and
  • Declare what MFC expects as the first base class (i.e.: CDocument in this case), so that things like pCatchbugDoc->IsKindOf(RUNTIME_CLASS(CDocument)) and CDocument* pDoc = (CDocument*) pCatchbugDoc keep working.


--
jlr
http://jlamas.blogspot.com/[^]
GeneralWindows Services Pin
Laji5925-Jun-05 16:52
Laji5925-Jun-05 16:52 
GeneralRe: Windows Services Pin
Jose Lamas Rios25-Jun-05 18:26
Jose Lamas Rios25-Jun-05 18:26 
GeneralRe: Windows Services Pin
Laji5925-Jun-05 19:04
Laji5925-Jun-05 19:04 
GeneralRe: Windows Services Pin
fakefur25-Jun-05 19:24
fakefur25-Jun-05 19:24 
GeneralRe: Windows Services Pin
ThatsAlok26-Jun-05 18:32
ThatsAlok26-Jun-05 18:32 
GeneralRe: Windows Services Pin
Ravi Bhavnani26-Jun-05 3:09
professionalRavi Bhavnani26-Jun-05 3:09 
GeneralRe: Windows Services Pin
Laji5926-Jun-05 19:06
Laji5926-Jun-05 19:06 
GeneralRe: Windows Services Pin
Ravi Bhavnani26-Jun-05 19:12
professionalRavi Bhavnani26-Jun-05 19:12 
QuestionGet Controll? Pin
Larsson25-Jun-05 12:43
Larsson25-Jun-05 12:43 
AnswerRe: Get Controll? Pin
AntonlioX25-Jun-05 17:55
AntonlioX25-Jun-05 17:55 
Questionhow do you display the set password dialog for a given user? Pin
cycoder25-Jun-05 7:00
cycoder25-Jun-05 7:00 
Questionhow do you programmatically add a snapin to compmgmt.msc in C++? Pin
cycoder25-Jun-05 6:59
cycoder25-Jun-05 6:59 
Questionhow do you programmatically manipulate webcam video properties? Pin
cycoder25-Jun-05 6:58
cycoder25-Jun-05 6:58 
AnswerRe: how do you programmatically manipulate webcam video properties? Pin
FlyingTinman25-Jun-05 8:34
FlyingTinman25-Jun-05 8:34 
Questionhow do you tell if fast user switching is enabled? Pin
cycoder25-Jun-05 6:56
cycoder25-Jun-05 6:56 
AnswerRe: how do you tell if fast user switching is enabled? Pin
Toby Opferman25-Jun-05 18:52
Toby Opferman25-Jun-05 18:52 
GeneralRe: how do you tell if fast user switching is enabled? Pin
cycoder26-Jun-05 7:53
cycoder26-Jun-05 7: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.