Visual C++ and MFC Fundamentals Chapter 1: Introduction to Visual C++
Figure 13: Opening a File With the Open Dialog Box............................................................
- Click Open
- Notice that the file was opened as text although it is a resource file, just like the
previous one - To close the file, using the main menu, click Window -> Close
- To close the project, on the main menu, click File -> Close Workspace
- When asked whether you want to close all documents, click Yes. Also, agree to save
the Main.cpp file
1.3.6 Opening Existing Projects.....................................................................
A project is made of various files and subject to the environment in which it was created.
A project itself is a file but it is used to “connect” all the other files that compose its
particular application.
There is a limit on the types of projects you can open in Visual C++. This is not an
anomaly. Every computer-programming project is created using a particular environment
and each environment configures and arranges its project as its judges it necessary. For
example, the files necessary to create a Borland Delphi project are not the same for a
Visual C++ project and Visual C++ would not need to use such a project. Therefore, any
attempt to open an unrecognizable project would produce an error. Here is a message box
resulting from trying to open a Delphi project: