Solved

Why MFC non virtual

Posted on 2004-08-24
1
168 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
Comment Utility
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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
paragon account problem 9 96
Doc'in system (example?) BA 7 78
bigDiff challenge 17 75
ShiftLeft challenge 21 65
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: Database storage, where is the exe actually on the disc? Playing a game selected randomly (how to generate random numbers).  Error trapping with try..catch to help the code run even if something goes wrong. Continuing from the seve…
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 video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

743 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