我建了一个DLL,我想让DLL所在的窗体,显示在主界面的PANEL1里,但是老是显示不出来,请大家帮我看看,错在哪里?//dll
library dll;
uses
  SysUtils,
  windows,
  Classes,
  controls,forms,
  dllform in 'dllform.pas' {FrmDLLChild};{$R *.res}var
  DLLApp: TApplication;function GetDllChildForm:TFrmDLLChild; stdcall;
begin
    Result:= TFrmDLLChild.Create(application);
end;procedure InitDLL(App: TApplication); stdcall;
begin
  DLLApp := Application;
  Application := App;
end;procedure FreeDLL; stdcall;
begin
  Application := DLLApp;
end;exports
  InitDLL, FreeDLL, GetDllChildForm;
begin
end.
主窗体调用:
  with GetDllChildForm do
   begin
    parent:=form1.Panel1; //把这句去掉就能显示但显示不到PANEL1里,我想让DLL所在窗体显示在pan
    Show;
    end;