Solved

Why MFC non virtual

Posted on 2004-08-24
1
182 Views
Last Modified: 2013-11-20
why microsoft offers only non - virtual functions in MFC
is there is any ownership issuses or it's something else

2) what are the advantages of doc-view architecture??


waiting for expert answers


Sebnak
0
Comment
Question by:sebnak
1 Comment
 
LVL 13

Accepted Solution

by:
SteH earned 20 total points
ID: 11880030
1) Only in the base class the virtual specifier is needed. So you might not see that they are virtual but a lot of MFCs functionality is virtual. Some you can find in the ClassView: right click on a class and you get the option "add virtual function". Have a look at them. Another class of functions are message handlers which act a bit like virtual functions as well.

2) This strongly depends on what you want to achieve. For showing some numbers I don't see a big advantage in going to a doc/view architecture. This changes if you want an application to handle a special type of files. Each file is than seen as a document which can be viewed inside the applicatoion.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction: Dynamic window placements and drawing on a form, simple usage of windows registry as a storage place for information. Continuing from the first article about sudoku.  There we have designed the application and put a lot of user int…
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…

896 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now