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
Variant Type: If no data type is related with the VB variables, it takes the default variant type. The variable x will be of the variant type when the two declarations below a

ILLUSTRATION OF MDI APPLICATION USING A PROJECT 1. Choose the MDI option while generating the project by using the Appwizard. 2. Add the WM_LBUTTONDOWN message for the view

DATA CONTROL The data control is used to connect to the database. Three properties are very necessary to connect to the database. The primary property is the database name. You

Write an event procedure to automate the billing system of a supermarket. Give the details of database tables, forms, controls and menu design (if any). Make assumptions, wherever

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

Explain difference, Generic Variable: Create Object Ex:-Ole-Automation . No need refer the object library. What is Specific Variable: Binding Procedure Early & Late Binding ( Can

I have a problem with Visual Basic: exchangeable 2 images of place I have 2 picturebox''s placed a button when I click on the button, the 2 pictures of this place change with e

The View: The view is used for visualising. For illustration, while performing word processing, the user works on a sequence of words which compose the text. If a user is perf

I need a VB6 software for making a soccerboard for 10 teams & automatically generate their fixtures

Cdatabase Class: The CDataBase class helps to connect to the data source. The Open member function opens a connection to the data source. CRecordset class is used for performi