12.12.2012 Views

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

Teach Yourself Borland C++ in 14 Days - portal

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

354 Day 10<br />

■ The Project Explorer<br />

■ The Project Options dialog box<br />

■ Ma<strong>in</strong>ta<strong>in</strong><strong>in</strong>g and us<strong>in</strong>g projects<br />

So, without further ado, let’s get to it.<br />

Us<strong>in</strong>g the Project Manager<br />

At some po<strong>in</strong>t, every project needs some management. It could be that you need to add a new<br />

source unit to the project, or maybe you need to remove a source unit. You might need to add<br />

other types of files to the project, such as a b<strong>in</strong>ary resource file or an import library for a DLL.<br />

It is through the Project Manager that you add and remove units and other project files.<br />

The Project Manager W<strong>in</strong>dow<br />

The Project Manager w<strong>in</strong>dow shows you the current files <strong>in</strong> your project. To view the Project<br />

Manager, choose View | Project Manager from the ma<strong>in</strong> menu. Figure 10.1 shows the<br />

Project Manager w<strong>in</strong>dow for the ScratchPad program created on Day 6.<br />

The Project Manager w<strong>in</strong>dow tells you at a glance the state of each file <strong>in</strong> the project. Files<br />

that are up-to-date are displayed <strong>in</strong> a regular font; files that have been modified but have not<br />

yet been saved are shown <strong>in</strong> a bold font. This serves to rem<strong>in</strong>d you which of your files have<br />

changed s<strong>in</strong>ce you last saved the project.<br />

You will notice <strong>in</strong> Figure 10.1 that the Project Manager file list has three columns. The first<br />

column shows the name of the source unit that represents that file. For example, the source<br />

unit for the ma<strong>in</strong> form of the ScratchPad program is called SPMa<strong>in</strong>.cpp.<br />

The second column shows the name of the form that is associated with that file. The form<br />

name is taken from the Name property for the form. In some cases, there is no form associated<br />

with a source unit. Each project has a project source file associated with it that conta<strong>in</strong>s the<br />

VCL startup code for the application. Because there is no form associated with the project<br />

source file, the Form column for that file will always be blank. Look<strong>in</strong>g at Figure 10.1, you<br />

can see that the project source file for the ScratchPad program is named Scratch.cpp and that<br />

the Form column is blank.<br />

The last column <strong>in</strong> the File list of the Project Manager w<strong>in</strong>dow conta<strong>in</strong>s the path where the<br />

file is located. This column is always blank for files that reside <strong>in</strong> the project’s own directory.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!