该如何调用DLL,很简单,请知道
我写了一个DLL
unit Unit1;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls;
type
TForm1 = class(TForm)
Button1: TButton;
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
procedure some;stdcall;
begin
form1.Show;
end;
{$R *.dfm}
end.
我要在另一个工程里调用它该如何调用:
unit Unit_dll;
interface
uses
Windows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,
Dialogs, StdCtrls, Buttons;
type
TForm1 = class(TForm)
BitBtn1: TBitBtn;
procedure BitBtn1Click(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
procedure some;external 'project1.dll';
{$R *.dfm}
procedure TForm1.BitBtn1Click(Sender: TObject);
begin
some;
end;
end.
请问出什么错