Visual C++ and MFC Programming 2nd Edition

(Martin Jones) #1

Visual C++ and MFC Fundamentals Chapter 1: Introduction to Visual C++


Figure 11: Adding a C++ Class....................................................................................................



  1. Click OK

  2. To save everything, on the Standard toolbar, click Save All


1.3.5 Opening Files...........................................................................................


A file is a series of computer bits that are aligned in the computer memory as one entity
to constitute a document. To open a file, simply display the Open dialog box and proceed
as you would for any other computer application that can be used to open a file.

If you had previously created or opened a file, Visual C++ keeps a list of the most
recently used (MRU) file under its File menu. To control the maximum number of files
that can be listed:

?? If you are using MSVC 6, display the Options dialog box and access its Workspace
property page. Then change the value of the Recent File List Contains edit box

?? If you are using MSVC 7, open the Options dialog box and, under the Environment
node, click the General link. Then, change the value of the second Display line

Its ability to open various types of files allows you to view a word processing document,
a spreadsheet or a presentation.

When opening a file that is not a “native” C++ or Visual C++ file, the main menu and
toolbar of its parent application take over the top area of the Visual C++ environment.
This gives you all the features of the application. For example, you can open a word
Free download pdf