L
liaowang
Unregistered / Unconfirmed
GUEST, unregistred user!
login.pas:
procedure gettext(var name:string;var password:string);export;
implementation
{$R *.DFM}
procedure gettext(var name:string;var password:string);
begin
frm:=tfrm.create(application);
try
if frm.showmodal=idok then
begin
name:=frmpassword.dxPickEdit1.Text;
password:=frmpassword.Edit1.Text;
end
else
application.Terminate;
finally
frm.Free;
end;
end;
end.
get.pas
procedure gettext(var name:string;password:string);far;
external 'login';
implementation
{$R *.DFM}
procedure Tfrmdll.FormCreate(Sender: TObject);
var
name:string;
password:string;
begin
gettext(name,password);
end;
上面是一个通用口令dll和它的调用程序,在win98/me中能正常运行,在
win2000中提示找不到login.dll,请各位指点
procedure gettext(var name:string;var password:string);export;
implementation
{$R *.DFM}
procedure gettext(var name:string;var password:string);
begin
frm:=tfrm.create(application);
try
if frm.showmodal=idok then
begin
name:=frmpassword.dxPickEdit1.Text;
password:=frmpassword.Edit1.Text;
end
else
application.Terminate;
finally
frm.Free;
end;
end;
end.
get.pas
procedure gettext(var name:string;password:string);far;
external 'login';
implementation
{$R *.DFM}
procedure Tfrmdll.FormCreate(Sender: TObject);
var
name:string;
password:string;
begin
gettext(name,password);
end;
上面是一个通用口令dll和它的调用程序,在win98/me中能正常运行,在
win2000中提示找不到login.dll,请各位指点