Visual C++ 6 Unleashed

Visual C++ 6 Unleashed

By MICKEY WILLIAMS and David Bennett

The Project Workspace

Working with the Developer Studio is based on working with Project workspaces. These workspaces represent a particular set of projects, which can be anything from a single application, to a function library, to an entire suite of applications. Each workspace may include any number of different projects that you want to group into a single workspace so that you can work closely with each separate project at the same time.

The project workspace (.dsw) file is responsible for maintaining all of the information that defines your workspace and the projects that you have included in it. Each workspace contains one or more projects, with each project using a project (.dsp) file. Previ ously, you might have used make (.mak) files to maintain projects and the processes involved in creating your applications. Developer Studio 6.0 does not create .mak files by default anymore, although you can force Developer Studio to create a makefile based on current project settings by using the Export Makefile command from the Project menu. This is useful if you are using .mak files to automate your builds outside of Developer Studio.

In addition to makefile-type information about your projects, the project workspace file includes information about the settings you have chosen for Developer Studio itself. This means that whenever you open a project workspace, all of the Developer Studio settings that you had when you last worked with this workspace will be restored. All of the windows that were open before will also be opened and returned to their previous position in the workspace.

You can create a new, empty workspace using the Workspaces tab of the File, New dialog box. However, an empty workspace isn't generally of much use, unless you want to configure a project from scratch. You may create a new workspace whenever you create a new project from the Projects tab of the File, New dialog box. This will present you with several different choices, as shown in Figure 1.2.

01fig02.gif

Figure 1.2 New Projects dialog box.

When you create a new project, Visual C++ will set up default build settings for the type of project you specify here. You may also start up one of the Application Wizards from this dialog box. You will see exactly what each of these project types will do for you later in this chapter.

With all of this talk about workspaces, perhaps you would expect that Developer Studio would provide a nice graphical interface to this information. Well, sure enough, it does—the Workspace window.

Share ThisShare This

Informit Network