Using Existing Projects

You'll now use the COUNT project that you just created for further work.

During a PWB session, the project you open remains open unless you explicitly change it. If you have not already started PWB, you should do so now. In Windows, click the PWB icon in the Microsoft C/C++ program group.

If you are not compiling from within Windows, you can start PWB and open the COUNT project from the operating-system command line by typing the command:

PWB /PP COUNT

If the COUNT project is the last project you had open in PWB, type the following command:

PWB /PL

If you have already started PWB, open the project now.

·To open the project from within PWB:

1.From the Project menu, choose Open Project.

2.Choose COUNT.MAK from the File List box or type COUNT in the Project Name text box.

3.Choose OK

When you open the project, PWB restores the project's environment, including:

The window layout with the window style, size, and position for each window.

The file history—a list of open files for each window and the last cursor position in each file.

The last find string.

The last replace string.

The options that you used for the last find or find-and-replace operation, such as regular expressions. See “Using Regular Expressions” on page 90 for more information about regular expressions.

The project template (for example, DOS EXE) and any customizations you have made to the template such as changing the build type or a compiler or linker option.

The command-line arguments for your program.

All environment variables, including PATH, INCLUDE, LIB, and HELPFILES.

Note that you can customize the way PWB handles environment variables by changing the Envcursave and Envprojsave switches. For more information, see “Environment Variables” on page 137.

Note :

When you turn off the Restore Window Layout option, PWB does not restore the window layout, the find strings and options, or the file history. PWB opens the project but keeps the same editor state as it had before you opened the project.