All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
delphi中间编译单元(.dcu)

Writer: aaa Article type: Programming skills(编程技巧) Time: 2014/7/19 0:09:13 Browse times: 353 Comment times: 0

delphi中间编译单元(.dcu)


Head photo

Go homepage
Upload pictures
Write articles

delphi中间编译单元(.dcu)

中间编译单元(.dcu)
中间编译单元的扩展名为.dcu,不可以执行。在建立应用程序的链接阶段,所有的.dcu 文件链接起来成为可执行程序。以.dcu 为扩展名的文件是可以删除的,但最好还是让Delphi 来自行管理这些文件。
注意:如果只分发.dcu 文件,编译过的代码在Delphi 将来发布的版本中可能是无效的。如果不升级,程序员就无法继续使用这些.dcu 文件。如果出售的是工具软件,可以考虑公开源代码,并在许可协议中规定可接受的使用方式。
建立应用程序时,Delphi 会将源代码文件与编译过的单元进行比较。如果源代码没有被修改过,Delphi 就不再重新编译源文件。如果希望其他的开发者使用这种产品来建立应用程序,可以只发布.dcu文件,而不发布源文件。这种方式,其他的开发者可以使用该代码,但无需知道代码是如何编写的。发布.dcu 文件确实是一种方法,这样就可以传播私有代码而无需将其公开。





There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.