Solved

Why MFC non virtual

Posted on 2004-08-24
1
215 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 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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…
Introduction: Dialogs (2) modeless dialog and a worker thread.  Handling data shared between threads.  Recursive functions. Continuing from the tenth article about sudoku.   Last article we worked with a modal dialog to help maintain informat…
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.
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.

707 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