L
lordofbinladen
Unregistered / Unconfirmed
GUEST, unregistred user!
这是有关DLL MDI From 的问题...
1.为什么 MDI-Child在DLL中载入并使用在程序关闭时会出现runtime error 216 at
00ED34AA的错误呢?
2.为什么不能移动MDI-Child?
主程序部份:
procedure TForm1.Button1Click(Sender: TObject);
begin
fDllv20(Application,Self);
end;
DLL 部份:
function fDllv20(ParentApplication: TApplication; ParentForm: TForm): integer; stdcall;
begin
try
Application:=ParentApplication;
frmV_Main:=TfrmV_Main.Create(ParentForm);
frmV_Main.MyParentForm:=ParentForm;
frmV_Main.MyParentApplication:=ParentApplication;
frmV_Main.Show;
finally
end;
end;
1.为什么 MDI-Child在DLL中载入并使用在程序关闭时会出现runtime error 216 at
00ED34AA的错误呢?
2.为什么不能移动MDI-Child?
主程序部份:
procedure TForm1.Button1Click(Sender: TObject);
begin
fDllv20(Application,Self);
end;
DLL 部份:
function fDllv20(ParentApplication: TApplication; ParentForm: TForm): integer; stdcall;
begin
try
Application:=ParentApplication;
frmV_Main:=TfrmV_Main.Create(ParentForm);
frmV_Main.MyParentForm:=ParentForm;
frmV_Main.MyParentApplication:=ParentApplication;
frmV_Main.Show;
finally
end;
end;