你是否对默认的
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的帮助文件查到的,希望
大家有比较好的翻译