⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 dllform.pas

📁 特别方便的工具程序
💻 PAS
字号:
unit DllForm;

interface

uses
  Windows, Messages, SysUtils, Classes, Graphics, Controls, Forms,
  Dialogs, StdCtrls, ExtCtrls;

type
  TDllForm1 = class(TForm)
    Button1: TButton;
    Button2: TButton;
    Panel1: TPanel;
    Edit1: TEdit;
    Edit2: TEdit;
    Label1: TLabel;
    Label2: TLabel;
  private
    { Private declarations }
  public
    { Public declarations }
  end;

var S: string;

function DLL01: Boolean; Export;
function PassWord: Boolean; Export;

implementation

{$R *.DFM}

function Dll01;
begin
  S := 'DLL 测试程序';
  Showmessage(S);
  MessageBox(0, '这是我的第一个DLL程序', '测试程序:', 0);
  Result := True;
end;

function PassWord;
var F: TDllForm1;
begin
  Showmessage(S);
  F := nil;
  with TDllForm1.Create(F) do begin
    Showmodal;
    Result := Showmodal = mrOK;
  end;
  F.free;
end;

end.

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -