|
-
May 24th, 2013, 07:56 AM
#4
Re: creating an instance of a mfc derived class.
 Originally Posted by J_W
Oh, ok, for some reason I thought that might foobar the MFC framework that made it protected. Wonder why the derived CFormView class has a protected ctor and the other derived classes don't. Maybe I should also create one with CFormView inside the doc/template and trace thru and see how it gets created.
I think the idea is (was) that you only instantiate the class using the CRuntimeClass interface. IIRC this is also how the doc template framework does it. However, the CRuntimeClass design is so hopelessly outdated that there is little point in using it in your own code.
Cheers, D Drmmr
Please put [code][/code] tags around your code to preserve indentation and make it more readable.
As long as man ascribes to himself what is merely a posibility, he will not work for the attainment of it. - P. D. Ouspensky
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|