灯火互联
管理员
管理员
  • 注册日期2011-07-27
  • 发帖数41778
  • QQ
  • 火币41290枚
  • 粉丝1086
  • 关注100
  • 终身成就奖
  • 最爱沙发
  • 忠实会员
  • 灌水天才奖
  • 贴图大师奖
  • 原创先锋奖
  • 特殊贡献奖
  • 宣传大使奖
  • 优秀斑竹奖
  • 社区明星
阅读:4350回复:0

Delphi项目的构成(Files That Make Up a Delphi Project)

楼主#
更多 发布于:2012-09-08 13:04


你是否对默认的delphi项目所包含的文件都认识呢?
下面让我来一起看看吧。
Step1、打开delphi7,选择【File | New | Application】,创建一个默认delphi应用程序;
Step2、选择【File | Save All】,将我们的默认delphi程序保存到一个独立的文件夹(例如C:FirstTest)中;
Step3、按【F9】运行我们的程序,然后退出;
Step4、接下来打开Windows资源管理器,打开刚才保存的文件夹 (例如C:FirstTest)看看,如下图:

51_3710_f544928ca1ef558.png[删除]
此时文件夹中包含了8个文件,这8个文件就是组成默认delphi应用程序所必须的:
文件名类型英文作用翻译
Project1.cfg项目Project configuration fileStores project configuration settings. It has the same name as the project file, but with the extension .cfg.
  

Project1.dof项目选项文件Project options fileContains 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 ProjectThe project file contains references to all the forms and units used by the project.
Project1.exe应用程序Executable FileYou can run it under win32
Project1.res资源文件Resource FileContains 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 unitThe 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 FormForm files (extension .dfm ) describe each component in your form, including the values of all persistent properties.
Unit1.pas窗体单元文件delphi Source FileEach 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的帮助文件查到的,希望大家有比较好的翻译


喜欢0 评分0
游客

返回顶部