J
joshua_jia
Unregistered / Unconfirmed
GUEST, unregistred user!
dll中是這樣寫的:
function loginform:longint;
var
dllform:Tlogin;
begin
dllform:=TLogin.Create(application);
dllform.ShowModal;
dllform.Free;
end;
{$R *.res}
exports
loginform;
begin
end.
下面是調用:
var
Form1: TForm1;
function loginform:longint;stdcall external 'project1.dll';
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
loginform;
end;
是不是dll過程有問題啊?
顯示出錯信息為:
project project1.exe raised exception class EOLesyserror with message 'moniker 並未參照到存放庫'.Process stopped.
請問是什麼問題,謝。。。
function loginform:longint;
var
dllform:Tlogin;
begin
dllform:=TLogin.Create(application);
dllform.ShowModal;
dllform.Free;
end;
{$R *.res}
exports
loginform;
begin
end.
下面是調用:
var
Form1: TForm1;
function loginform:longint;stdcall external 'project1.dll';
implementation
{$R *.dfm}
procedure TForm1.Button1Click(Sender: TObject);
begin
loginform;
end;
是不是dll過程有問題啊?
顯示出錯信息為:
project project1.exe raised exception class EOLesyserror with message 'moniker 並未參照到存放庫'.Process stopped.
請問是什麼問題,謝。。。