宇宙中最强悍的Delphi资料专辑

[入库:2005年11月10日] [更新:2008年9月2日]

本文简介:Delphi 利用Object Pascal 和可视控件库(VCL)对底层的Windows API 进行了完美的封装,所以很少需要使用基础Pascal 语言来建立Windows应用程序,也无需直接调用Windows API 函数。尽管如此,如果遇到特殊情况,VCL 又不支持,Delphi程序员还得直接面对Windows编程。不过只有在极其特殊的情况下,例如:基于不寻常API 调用的Delphi新控件开发, 你才需要这样做,这里我不想讨论这方面内容,我只想让大家看一下与操作系统交互的几个Delphi元素以及Delphi程序员能从中获益的Windows编程技术。

Programs and units
 

A program is constructed from source-code modules called units. Each unit is stored in its own file and compiled separately; compiled units are linked to create an application. Units allow you to

·divide large programs into modules that can be edited separately.

·create libraries that you can share among programs.

·distribute libraries to other developers without making the source code available.

In traditional Pascal programming, all source code, including the main program, is stored in .pas files. Borland tools use a project (.dpr) file to store the main program, while most other source code resides in unit (.pas) files. Each application or project consists of a single project file and one or more unit files. (Strictly speaking, you needn’t explicitly use any units in a project, but all programs automatically use the System unit.) To build a project, the compiler needs either a source file or a compiled unit file for each unit.

本方案相关附件

本文关键:,Delphi,编程,程序员,程序,
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top