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

Cell phone application, to dial a person''s 10 digit number and assign it t...

to dial a person''s 10 digit number and assign it to their name

Enabling odbc, Enabling ODBC: 1. Select the control panel, programs, s...

Enabling ODBC: 1. Select the control panel, programs, setting and then ODBC32 2. Double click on the ODBC32 3. The Settings for an operating system will take place. 4

Hierarchy of operation, what are the functions and the importance of hierar...

what are the functions and the importance of hierarchy operators

Document interfaces - visual basic programming, DOCUMENT INTERFACES   ...

DOCUMENT INTERFACES   A SDI (Single document interface) and the MDI (Multiple document interfaces) are the document interfaces. The MDI based applications can have numerous ch

Find the total cost, Case: Design a web page that contains the VBScript uti...

Case: Design a web page that contains the VBScript utilized for calculating subtotals, taxes, discounts & totals as well as code utilized to validate use

Change calculator, how do i create a change calculator that gives the denom...

how do i create a change calculator that gives the denominations of coins for an amount of change up to .99 cents

Objective of vb script, The objective of this unit is to describe the basic...

The objective of this unit is to describe the basics of VBScript. After completing this unit, you will be capable to write code for Web pages via VBScript. You will be able to unde

Benefits of using dynamic link library, Benefits of Using DLLs: The dy...

Benefits of Using DLLs: The dynamic linking has the following advantages which are as shown below: It saves memory and decreases the swapping. Many processes can use a s

Repeating a statement until a condition becomes true, You can employ until ...

You can employ until keyword in two ways to verify a condition in a Do...Loop statement. You can verify the condition before you enter the loop (as illustrated in the following Chk

Ddx - dialog data exchange, DDX - Dialog Data Exchange: The Data membe...

DDX - Dialog Data Exchange: The Data members can be related with specific controls in the dialog box. When the dialog box is displayed, the DDX will transfer the values into t

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