Do you know all the files contained in the default Delphi project?
Let's take a look.
Step 1. OpenDelphi7, Select 【File | new | Application] To create a default Delphi application;
Step 2. Select 【File | save all], Save our default Delphi Program to an independent folder (for example, c: \ firsttest;
Step 3. Press 【F9] Run our program and exit;
Step 4. OpenWindows Resource ManagerOpen the saved folder (for example, c: \ firsttest), for example:
Note
Extension (~) The initial file is a backup file. Based on the number of source files in the project and the Set project options (OPTIONS ...), Delphi can generate several backup files.
The folder contains8Files, which are required to form the default Delphi application:
| File Name |
Type |
English |
Function |
Description |
| Project1.cfg |
Project configuration file |
Project configuration file |
Stores project configuration settings. It has the same name as the project file, but with the extension. cfg.
|
Project configuration file, which contains at least the compiler and linker set for the current project. |
| Project1.dof |
Project option File |
Project Options File |
Contains the current settings for project options, such as compiler and linker settings, directories, conditional ctictives, and command-line parameters. set these options using the Project Options dialog box (Project | options), they are saved in text form for easy maintenance, version control, and sharing. |
Project option file, which contains the project options set in the project option dialog box. |
| Project1.dpr |
Project File |
Delphi project |
The project file contains references to all the forms and units used by the project. |
Project source file. |
| Project1.exe |
Applications |
Executable File |
You can run it under Win32 |
Win32 application. |
| Project1.res |
Resource file |
Resource file |
Contains the version info Resource (if required) and the application uses main icon. this file may also contain other resources used within the application but these are preserved as is. do not delete this file if your application contains any references to it. |
Compiled binary resource files. |
| Unit1.dcu |
Form compilation File |
Delphi compiled Unit |
The first time you build an application or a dynamically linkable library, the compiler produces a compiled unit (. DCU on Windows) file for each new unit used in your project |
Compiled binary object files. When the compiler compiles the Object Pascal unit, the compiler generates these files. |
| Unit1.dfm |
Form file |
Delphi Form |
Form files (extension. DFM) describe each component in your form, including the values of all persistent properties. |
It is used to describe the form and All Forms components. Each form has its own DFM file. |
| Unit1.pas |
Form unit file |
Delphi source file |
Each form in a project also has an associated unit. the unit contains the source code for any event handlers attached to the events of the form or the components it contains. A unit associated with a form is sometimes called a form unit. |
Each unit has a source file. |
In English, the Help File of Delphi7 is directly queried. I hope you can have a better translation.