程序師世界是廣大編程愛好者互助、分享、學習的平台,程序師世界有你更精彩!
首頁
編程語言
C語言|JAVA編程
Python編程
網頁編程
ASP編程|PHP編程
JSP編程
數據庫知識
MYSQL數據庫|SqlServer數據庫
Oracle數據庫|DB2數據庫
 程式師世界 >> 編程語言 >> 更多編程語言 >> Delphi >> Delphi項目的構成(Files That Make Up a Delphi Project)

Delphi項目的構成(Files That Make Up a Delphi Project)

編輯:Delphi

 

你是否對默認的Delphi項目所包含的文件都認識呢?

下面讓我來一起看看吧。

Step1、打開Delphi7,選擇【File | New | Application】,創建一個默認Delphi應用程序;

Step2、選擇【File | Save All】,將我們的默認Delphi程序保存到一個獨立的文件夾(例如C:\FirstTest)中;

Step3、按【F9】運行我們的程序,然後退出;

Step4、接下來打開Windows資源管理器,打開剛才保存的文件夾 (例如C:\FirstTest)看看,如下圖:

0007

此時文件夾中包含了8個文件,這8個文件就是組成默認Delphi應用程序所必須的:

文件名 類型 英文 作用 翻譯 Project1.cfg 項目 Project configuration file

Stores project configuration settings. It has the same name as the project file, but with the extension .cfg.
   

  Project1.dof 項目選項文件 Project options file

Contains the current settings for project options, such as compiler and linker settings, directories, conditional directives, 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.

  Project1.dpr 項目文件 Delphi Project The project file contains references to all the forms and units used by the project.   Project1.exe 應用程序 Executable File You can run it under win32   Project1.res 資源文件 Resource File Contains the version info resource (if required) and the application抯 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.   Unit1.dcu 窗體編譯文件 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   Unit1.dfm 窗體文件 Delphi Form Form files (extension .dfm ) describe each component in your form, including the values of all persistent properties.   Unit1.pas 窗體單元文件 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.  

上面的作用中的英文是直接查詢Delphi7的幫助文件查到的,希望大家有比較好的翻譯

  1. 上一頁:
  2. 下一頁:
Copyright © 程式師世界 All Rights Reserved