Explain Doc/View architecture

Answer Posted / surendra mishra

A MFC application is created using different classes. Each
of the class has given a distinct responsibility.

1. Frame window class - Represents the application window.

2. View class- Represents the data to the user in specific
understandable format.

3. Document class – Represents the applications data.(
Program data used by application during its execution).

MFC architecture allows user to represent the data as
documents in different views (formats ex. Charts, tabular,
textual). View(s) are attached to the application frame
window.

SDI Example: Let us say we have a application with name
MySDI..

In SDI application we have following major classes derive.

CMySDIApp-Application class derived from CWinApp.

e) CMainFrame - Frame Window class derived from CFrameWnd

f) CMySDIView - View class derived from CView (Can have
multiple classes)

g) CMainDoc - Document class derived from CDocument.

Above three classes are bind together using a Template
class called as CSingleDocTemplate.

Is This Answer Correct ?    35 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to handle dynamic menus in mfc? What happens when client calls cocreateinstance?

687


What is the difference between Struts and JSF? Pls list some most suitable differences.

2843


plzz tell me what we can do and dont in tally ERP & sap business one?

1874


What is mfc class hierarchy?

611


I want recent paper pattern for HP company?

1781






How do I create a dialog box in mfc?

607


List out the basic features of MFC.

13677


What does mfc stand for?

953


what is the meaning of constant FILE EXCEEDS LENGTH LIMIT while loading from ps file to vsam in the jcl?

3338


how to repaint when working with horizontal scroll bar

1540


what message is sent to an application when the user presses the primary button?

1383


what is functioning of DIalodDataXchange ..?

1187


Do you have an idea about MFC?

910


2.create for 10 batch: Employee_Number Employee_name Employee_Dateofjoining Employee_address Employee_salary 1.select the employee name who deriving more than 10 thousand salary and joined before august 08. use structure and pointers

1806