Files in a sdi and mdi application, Visual Basic Programming

Assignment Help:

Files in a SDI and MDI Application:

Both the SDI and MDI projects have 4 implementation files (.cpp extension). These are the files equivalent to the Document Class, View Class, MainFrame Class and the App Class.

The App class holds the object of the project and it is inherited from the CWinApp. If the project is named as first then the App class would be named as the CFirstApp and the implementation file would be first.cpp. The equivalent header file first.h would also be accessible.

The View Class is mostly used for writing the drawing code. The OnDraw() function in the View Class is the place where you will write the drawing code. Apart from the OnDraw() function, you can integrate event handlers with the drawing code. For the project named first, the View Class would be the CFirstView and the implementation file would be firstView.cpp. The equivalent header file would be the firstView.h.

The Document class is the position where the data members are defined. It has also the Serialise function that implements the file storage and retrieval. When the project is named as first the document class would be the CFirstDoc and the implementation file would be the firstDoc.cpp. The equivalent header file would be the firstDoc.h.

The MainFrame class holds all the essential coding for the display window of the project. The status bar pane initialization iscompleted in the MainFrame class. If the project is named as first the MainFrame class would be the CMainFrame and the implementation file would be the MainFrm.cpp. The equivalent header file would be MainFrm.h. Also stdafx.h, the standard application frame work header files will also be a part of every project.

Apart from these implementation and header files, the dsp, .ncb & .plg files are present;

The .dsp is the developer studio project file; .ncb holds the class information in binary; .plg holds the settings of that project.


Related Discussions:- Files in a sdi and mdi application

Fixed length strings, Fixed length strings: The Fixed length strings ar...

Fixed length strings: The Fixed length strings are declared by identifying the size of the string. For illustration to give a length of 20 for the string place, the declarati

Project, I have a project due tomorrow that I am really struggling in. Plea...

I have a project due tomorrow that I am really struggling in. Please help.

Dynamic link library - dll , DYNAMIC LINK LIBRARY - DLL   The DLL are ...

DYNAMIC LINK LIBRARY - DLL   The DLL are files which can be called when required by the other program that is running in the computer. The DLL files which support the specific

Three models for user interface design, THREE MODELS FOR USER INTERFACE DES...

THREE MODELS FOR USER INTERFACE DESIGN   The 3 models for the user interface design are the implementation model, mental model &the manifest model. The Implementation Mod

The document - document view architecture, The Document: The document ...

The Document: The document contains the user's data. For illustration, after working on a text processor, the user may wish for to save the file. Such an action builds a docum

#tit, anumberisprimeornot

anumberisprimeornot

Event-driven programming - windows programming, Event-Driven Programming: ...

Event-Driven Programming: The Event-driven programming allows the program to react to various inputs or events.   The action on a graphical component is an event. For il

Insertion and deletion in algorithm, translate''Q''for insert into element ...

translate''Q''for insert into element and''Q''delete for deletion element into programming language

Write Your Message!

Captcha
Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd