摘要: 首先点击File->New->Other-> Dynamic Link Libary把工程文件保存为:CalendarLib.pas 再创建一个Form并放入一个TMonthCalendar控件borderStyle属性设为:bsToolWindow保存为 DllFormUnit.pasunit DllFormUnit;interfaceuses Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms, Dialogs, ComCtrls;type TDllForm = class(T 阅读全文
posted @ 2012-02-19 21:18 TryHard 阅读(1342) 评论(1) 推荐(1) 编辑
摘要: 创建DLL文件 Delphi -> New->Other -> Dynamic link libraylibrary SimpleTestDll;uses SysUtils, Classes,Dialogs;//简单的一个例子procedure ShowDllMsg;begin ShowMessage('简单的一个例子');end;//两个数相加function Add(Num1,Num2:Integer):Integer;stdcall;begin Result := Num1 + Num2;end;{$R *.res}//提供名称给外部单元使用 然点编译成 阅读全文
posted @ 2012-02-19 19:13 TryHard 阅读(777) 评论(0) 推荐(0) 编辑