Graphics Reference
In-Depth Information
Purpose
Files
Folder
TutorialApp(.cpp,.h)
Source code
TutorialDlg(.cpp,.h)
stdafx(.cpp,.h), Resource.h
MFC_SimpleDialog
Documentation
Readme.txt
(main project folder)
GUI builder
* .rc
IDE project
* .vcproj, * .sln
IDE scratch
* .aps, * .ncb
Icon
\ res
* .ico, * .rc2
\
Debugging
* .exe, * .obj ( compiled results)
Debug
Release
* .exe, * .obj ( compiled results)
\ Release
Table 2.2. Source code structure for Tutorial 2.1.
Table 2.2 shows the source code structure for Tutorial 2.1. We will examine the
files according to the purpose of the files.
Source code. These are the files that contain the source code for the appli-
cation. Notice that there are seven source files for this simple project! We
will examine the details of these source files after examining the rest of the
supporting files in this development project.
Documentation. The ReadMe.txt file is a text file meant for the program-
mer to fill in comments.
GUI builder. The .rc file is the data file of the MFC GUI builder (i.e., the
resource editor). Listing 2.1 shows that this is a simple text file, where it
Source listing. For the conve-
nience of description, in gen-
eral the presented source code
has been significantly edited
from the original source file.
Readers should understand the
source code in the topic and
expect to see the code frag-
ments in different orders when
examining
is possible to open/edit this file with any simple text editor (e.g., Notepad).
We see that among other data, this file includes information that describes
the location and appearance of all the GUI elements on the application
window.
IDE project. The .vcproj/.sln files are used by the VC++ IDE for defin-
ing the source code project (e.g., what the source files are, how to compile
the project). These are also text files; interested readers can open/edit these
files with any text editor to examine the details.
the
source
code
files.
IDE scratch. The .aps/.ncb are temporary files kept/generated by the
IDE while supporting our development process. These files can be deleted
in between editing/development sessions.
Icon. These are image files for describing the icon on the top left of the
application window and when the application window is iconized.
Search WWH ::




Custom Search