dll中: private
LoginTime: integer;
reply: pchar;
{ Private declarations }
public
{ Public declarations }
end;var
frmUserLogin: TfrmUserLogin;function Showpass(app:Tapplication): pchar; stdcall;
implementation
{$R *.DFM}
function Showpass(app:Tapplication): pchar; stdcall;
begin
frmUserLogin := TfrmUserLogin.Create(app);
with frmUserLogin do
begin
try
update;
showmodal;
finally
result := reply;
free;
end;
end;
end;
exe调用:
implementation
function Showpass(app:TApplication): pchar; stdcall;external 'Plogin.dll' name 'Showpass';
{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
if Showpass(application) <>'Ok' then
application.Terminate;
end;
LoginTime: integer;
reply: pchar;
{ Private declarations }
public
{ Public declarations }
end;var
frmUserLogin: TfrmUserLogin;function Showpass(app:Tapplication): pchar; stdcall;
implementation
{$R *.DFM}
function Showpass(app:Tapplication): pchar; stdcall;
begin
frmUserLogin := TfrmUserLogin.Create(app);
with frmUserLogin do
begin
try
update;
showmodal;
finally
result := reply;
free;
end;
end;
end;
exe调用:
implementation
function Showpass(app:TApplication): pchar; stdcall;external 'Plogin.dll' name 'Showpass';
{$R *.dfm}procedure TForm1.FormCreate(Sender: TObject);
begin
if Showpass(application) <>'Ok' then
application.Terminate;
end;
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货