Files in a sdi and mdi application, Visual Basic Programming

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.

Posted Date: 10/10/2012 1:14:36 AM | Location : United States







Related Discussions:- Files in a sdi and mdi application, Assignment Help, Ask Question on Files in a sdi and mdi application, Get Answer, Expert's Help, Files in a sdi and mdi application Discussions

Write discussion on Files in a sdi and mdi application
Your posts are moderated
Related Questions
You can employ Do...Loop statements to run a block of statements indefinite number of times. The statements are repeated either whilst a condition is True or till a condition becom

Just like normal objects Dictionary object also has definite properties. These properties can be set to any valid value & can be retrieved as and while required. Pr

A vehicle dealership has a number of different items for sale: motorbikes, cars, vans and boats. Each class of items for sale has different characteristics that need to be recor

Deleting Handlers With Class Wizard: The handler can be deleted by using the class wizard. The class wizard will delete the prototype and message map entry. The user should ma

i need code for assignment problem of operational research in vb


ARCHITECTURE OF WIN 32 PROGRAM   Figure: working of Win 3 program The hardware events in the figure are the mouse associated events like the mouse move, left

CONTEXT-SENSITIVE HELP   The Context-sensitive help gives online help for the circumstances which is associated with that state. The Context-sensitive help can be implemented

The following table lists suggested conventions for objects you might encounter while programming VBScript. Code Commenting Conventions All process should begin with a brie

Question 1 Create a VB application to make the text bold, italic, underlined and also color the text (using checkbox, option button, textbox controls) Question 2 Create a