黑白程式

黑白程式

导航

2008年8月18日

Delphi中dll的使用(转)

摘要: Windows 的执行文件可以划分为两种形式程序和动态连接库 (DLLs)。一般程序运行是用.EXE文件,但应用程序有时也可以调用存储在DLL的函数。 当我们调用Windows 中的API 函数的时候,实际上就是调用存储在DLL 中的函数。 在如下几种情况下,调用DLL 是合理的: 1) 不同的程序使用相同的DLL ,这样只需要将DLL 在内存中装载一次,节省了内存的开销。 2) ... 阅读全文

posted @ 2008-08-18 15:30 黑白程式 阅读(412) 评论(0) 推荐(0)

Output only parameters(摘引自Delphi Basic)

摘要: We can go further, and define parameters that we can update, but which are there for update only - output from our subroutine. They should not be read by the subroutine,... 阅读全文

posted @ 2008-08-18 14:08 黑白程式 阅读(217) 评论(0) 推荐(0)

引用传参(摘引自Delphi Basic)

摘要: Passing by reference means that the subroutine actually refers to the passed variable rather than its value. Any changes to the value will affect the caller variab... 阅读全文

posted @ 2008-08-18 14:04 黑白程式 阅读(256) 评论(0) 推荐(0)