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.

356 Day 10<br />

Figure 10.2.<br />

The Project Manager<br />

speedbar.<br />

Add Unit<br />

Use the Add Unit button to add files to the project. When you click this button, the Add To<br />

Project dialog box is displayed. The Add To Project dialog box has file filters for the follow<strong>in</strong>g<br />

types of files:<br />

■ <strong>C++</strong> source files (.cpp)<br />

■ C source files (.c)<br />

■ Pascal source files (.pas)<br />

■ Library files (.lib)<br />

■ B<strong>in</strong>ary object files (.obj)<br />

■ Resource script files (.rc)<br />

Add Unit<br />

Remove Unit<br />

View Unit<br />

■ B<strong>in</strong>ary resource files (.res)<br />

If you add files of any of these types, <strong>C++</strong>Builder will know what to do with them. For<br />

example, if you add a C source file (.c), <strong>C++</strong>Builder will compile it as C rather than <strong>C++</strong> (the<br />

differences are subtle, and most of you don’t care about the differences, but to some<br />

programmers it matters). If you add a Pascal file (.pas), the Pascal compiler will compile the<br />

source file before pass<strong>in</strong>g it to the l<strong>in</strong>ker. If you add a b<strong>in</strong>ary object file (.obj), <strong>C++</strong>Builder<br />

passes it to the l<strong>in</strong>ker at l<strong>in</strong>k time.<br />

NOTE<br />

NOTE<br />

Update<br />

Project Options<br />

View Form<br />

You cannot add a unit to a project if a form with the same name<br />

already exists <strong>in</strong> the project. For example, if you have a form called<br />

Ma<strong>in</strong>Form and try to add a unit from another project that also has a<br />

form named Ma<strong>in</strong>Form, you will get an error message from <strong>C++</strong>Builder<br />

even if the filenames are different.<br />

Add<strong>in</strong>g files to your project of types other than those listed <strong>in</strong> this<br />

section is not advised. <strong>C++</strong>Builder will try to compile any unknown file<br />

types, and an error message will result.

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

Saved successfully!

Ooh no, something went wrong!