Kylix project files

Posted: September 17th, 2008 | Author: remote | Filed under: pascal |

Kylix Project Files

A Kylix project is made out of a number of files, some of which are very important (and so should not be deleted) and some of which are recreated during the save or compile process. The files are given names based either on the actual project name, or on the source module (or unit, to use the correct term) to which they relate.

When you start Kylix, it uses a default project name of Project1 and a default unit name of Unit1. The project file represents the whole application, whereas the unit typically contains the source code for an individual form. However, a unit can also be made that is unrelated to a form, containing (for example) reusable library code.

Here is a list of the more common files you will see, based on the default Kylix naming scheme:

  • Project1.dpr - The project source file
  • Project1.res - The project resource file, which is unused in Kylix (Delphi uses it for storing the application icon and version information)
  • Project1.kof - The Kylix Options File, which is a textual configuration file maintained and used by the IDE to store settings from the project options dialog
  • Project1.conf - The equivalent of the .kof file for the command-line compiler (dcc). You can readily generate Kylix applications from script files using the command-line tools, e.g.: dcc Project1.dpr
  • Unit1.pas - A Delphi PAScal unit
  • Unit1.xfm - The form file whose associated source code
  • Unit1.dcu - A compiled version of Unit1.pas (Delphi compiled unit)
  • Project1.~dpr - A backup of the project file. Unit1.~pas - A backup of the form unit
  • Unit1.~xfm - A backup of the form file
  • Project1 - The resultant executable compiled from your project and associated files


Leave a Reply