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
Write a XML with database with book details (BOOK ID, Title, Author, subject, published Year, language, vendor, price)

CLASS WIZARD The Class wizard shown in figure is a tool to handle the message handlers for objects, to define the member variables. Figure: Class Wizard

Check Box: The check box control takes the value as on or off or grayed. The grayed one is neither on nor off. The user can transform the setting of the grayed check box.

Device Contexts: The Device Context (DC) is represented by the data type Handle to Device Context (HDC). The HDC is a handle to somewhat you can draw on; it can be the whole s

Aim: To exhibit what is the day when the second command button is clicked and to clear the screen when the first command button is clicked. The functioning of this program is

CONTROL ARRAY The control array is a group of similar objects with similar name. Adding controls with control arrays uses less resource than simply adding the multiple controls

Hi, i need help in vb.net for the pelmanism game. I will appreciate if you can get back to me please

Accelerators: The Accelerators are short cut keys. The Accelerators are formed by placing an ampersand before any of the characters of the Caption. As a product the letter fol

In VBScript, You create user-defined constants using the Const statement. It lets you create string or numeric constants along with meaningful names and let you to assign them lite

DYNAMIC LINK LIBRARY   The dynamic link library (dll) permits one copy of a function to be shared among some parallel executing programs. The dll is a file that contains a num