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

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

6<br />

172 Day 6<br />

Table 6.1. cont<strong>in</strong>ued<br />

Extension Description<br />

NOTE<br />

NOTE<br />

.OBJ The compiled b<strong>in</strong>ary object files. These are the files that the compiler<br />

produces when it compiles your <strong>C++</strong> source files.<br />

.MAK The project makefile. This is a text file that conta<strong>in</strong>s a description of<br />

which files <strong>C++</strong>Builder needs to compile and l<strong>in</strong>k.<br />

.RES A compiled b<strong>in</strong>ary resource file produced by the resource compiler.<br />

.TDW The debugger symbol table. This file is used by the debugger dur<strong>in</strong>g<br />

debugg<strong>in</strong>g sessions.<br />

<strong>C++</strong>Builder database applications will use other database-specific file<br />

types as well. Database applications are discussed <strong>in</strong> detail <strong>in</strong> later<br />

chapters.<br />

The files that <strong>C++</strong>Builder produces can be broken down <strong>in</strong>to two categories: files that<br />

<strong>C++</strong>Builder relies on to build the project and files that it will create when it compiles and l<strong>in</strong>ks<br />

a project. If you were to move all your source files to another computer, for <strong>in</strong>stance, you<br />

wouldn’t have to move all the files, just the files <strong>C++</strong>Builder needs to build the application.<br />

Conveniently, the source files happen to be the smallest files <strong>in</strong> the project. It does not take<br />

a lot of disk space to back up just the project source files.<br />

The m<strong>in</strong>imum set of files consists of the .CPP, .H, .DFM, and .MAK files. All other files are files<br />

that <strong>C++</strong>Builder will re-create when you compile the program. The desktop file (.DSK) is one<br />

that you may want to hang on to because it keeps track of the state your project was <strong>in</strong> when<br />

you last worked on it.<br />

In addition to the source files I’ve mentioned, some applications use a<br />

resource script file. Resource scripts have an .RC extension. Resource<br />

scripts are text files that are used to def<strong>in</strong>e resources like bitmaps, icons,<br />

or cursors. If you use a resource script, be sure to keep it with the<br />

project if you move the project to another location.

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

Saved successfully!

Ooh no, something went wrong!