在Dll Library 中加入一个窗体就可以了
TDLLForm=class(TForm)
public
procedure showform; stdcall;
end;
export
showform;
var
DLLForm : TDllForm;
implementation
procedure TDLLForm.ShowForm;
begin
with DllForm := TDllForm.Create(nil) do begin
Showmodal;
Free;
DllForm := nil;
end;
end;