?
Solved

Why MFC non virtual

Posted on 2004-08-24
1
Medium Priority
?
217 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 13

Accepted Solution

by:
SteH earned 40 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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

Introduction: Ownerdraw of the grid button.  A singleton class implentation and usage. Continuing from the fifth article about sudoku.   Open the project in visual studio. Go to the class view – CGridButton should be visible as a class.  R…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
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.
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

741 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