我这边有一个是模式显示式窗体,在DELPHI7编译过了。
如果要显示为非模式的必须给DLL的窗体指定一下父窗体。在DELPHI从入门到精通有详讲。
library prjQuery;
{ Important note about DLL memory management: ShareMem must be the
first unit in your library's USES clause AND your project's (select
Project-View Source) USES clause if your DLL exports any procedures or
functions that pass strings as parameters or function results. This
applies to all strings passed to and from your DLL--even those that
are nested in records and classes. ShareMem is the interface unit to
the BORLNDMM.DLL shared memory manager, which must be deployed along
with your DLL. To avoid using BORLNDMM.DLL, pass string information
using PChar or ShortString parameters. }
uses
forms,
SysUtils,
Classes,
query in'query.pas'{frmquery};
function ShowForm:boolean;
var
frmquery :Tfrmquery;
begin
try
try
frmquery := Tfrmquery.Create(application);
frmquery.ShowModal
//alt Form.Show;
result := false;
except
on e:exception do
begin
result := true;
end
end;
finally
frmquery.Free;
end;
end;
exports
ShowForm;
end.