Explain Doc/View architecture

Answers were Sorted based on User's Feedback



Explain Doc/View architecture..

Answer / 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

Explain Doc/View architecture..

Answer / srinivas endra

Document/View Architecture represents pure Windows(SDI/MDI)
application, which is based on Mode View Control(MVC)
pattern. This Doc/View architecture separates the data from
view. One of the use of this Doc/View architecture is, we
can see multiple forms of the data.
Example. Two Charts(Pie chart, Bar char) for one common data.

Is This Answer Correct ?    22 Yes 1 No

Explain Doc/View architecture..

Answer / rajeev k r

http://msdn.microsoft.com/en-us/library/4x1xy43a(VS.80).aspx

Is This Answer Correct ?    5 Yes 1 No

Explain Doc/View architecture..

Answer / sitesh jha

The Document/View architecture is the foundation used to
create applications based on the Microsoft Foundation
Classes library. It allows you to make distinct the
different parts that compose a computer program including
what the user sees as part of your application and the
document a user would work on. This is done through a
combination of separate classes that work as an ensemble.

Is This Answer Correct ?    12 Yes 9 No

Explain Doc/View architecture..

Answer / mohammed mohantaj

The Doc/view architecture basically encapsulates the data
in the form of document object and separates it from the
view object which will take care of presenting the data for
the user in some sort of view in a window frame.

The most of the work in Doc/view app is done by the view
class. And the data storage is taken care by the document
class. The logical binding of the document, view(s) and the
frame is done by the document template.

The follwing are the main classes required to be created to
implement the doc/view architecture.
-CDocumentTeplate(CSingleDocTeplate/CMultiDocTemplate)
-CDocument
-CView
-CFrameWnd

Is This Answer Correct ?    1 Yes 0 No

Explain Doc/View architecture..

Answer / prachi

Doc/View architecture provides logical separation between
application data and representation of data. The document
may also provide an interface to the data wherever it
resides (such as in a database). A separate view object
manages data display, from rendering the data in a window to
user selection and editing of data. The view obtains display
data from the document and communicates back to the document
any data changes.

Is This Answer Correct ?    1 Yes 0 No

Post New Answer

More MFC Interview Questions

Types of DLL's

11 Answers   Invensys,


Given two processes, how can they share memory?

2 Answers   Microsoft,


what do you mean by psychic window?

2 Answers   Patni,


What is the base class for MFC Framework ?

2 Answers   Mphasis,


What is the size of class

18 Answers   Aircom,






how many types of classes are ther,what are that

7 Answers   L&T,


Tell me about different kinds of synchranization objects ?

6 Answers  


Which CPrintInfo member variable must be set for multiple page printouts?

1 Answers  


What is the base class for most MFC classes?

7 Answers   CMC, Siemens,


Q1. A. What is unary operator? List out the different operators involved in the unary operator. B. What is an adjust field format flag? Q2. A. Distinguish between a # include and #define. B. Can a list of string be stored within a two dimensional array? Q3. A. Explain how a pointer to function can be declared in C++? B. List the merits and demerits of declaring a nested class in C++? Q4. A. What are the syntactic rules to be avoid ambiguity in multiple inheritence? B. Explain the operation of overloading of an assignment operator. Q5. A. Explain how the virtual base class is different from the conventional base classes of the opps. B. Explain how an exception handler is defined and invoked in a Program. Q6. A. What is a binary file? List the merits and demerits of the binary file usagein C++. B. Write short notes on Text Manipulation Routines. C. Write bites in Turbo c++ Header ("Include") Files.

3 Answers   ABC, HCL, Infosys,


Difference between Debug and Release versions?

4 Answers  


How can i change the color of a dropdowncombobox elements

2 Answers  


Categories