给你个好用的,直接将窗口名称改了,套就行了。
library xtbasaccperiod;
{ 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,
Windows,
Classes,
Dialogs,
MConnect,
DBClient,
SysUtils,
Unit1 in 'Unit1.pas' {Dlg_OrgDetialForm1},
Unit2 in 'Unit2.pas' {Form2},
Unit3 in 'Unit3.pas' {Dlg_OrgDetialForm3};
var
DllScreen: TScreen;
DllApplication: TApplication;
{$R *.RES}
//客户端必须改写以下函数
procedure ShowMdiForm(MDIForm: String)
Export;
begin
//功能模块窗体,修改'Dlg_BasAccperiod'为自己的窗体
if UpperCase(MDIForm) = UpperCase('Dlg_BasAccperiod') then if (not Assigned(Dlg_BasAccperiod)) then
begin
Application := AppInfo.MainApplication;
Screen := Appinfo.ScreenHandle;
Dlg_BasAccperiod := TDlg_BasAccperiod.Create(Application);
end else begin
Dlg_BasAccperiod.WindowState := wsNormal;
Dlg_BasAccperiod.BringToFront;
End;
end;
//以下是动态连接库与主框架接口函数,不要修改
procedure LibraryProc(Reason: Integer);
begin
if Reason = DLL_PROCESS_DETACH then
begin
Screen := DllScreen;
Application := DllApplication;
end;
end;
exports
ShowMdiForm;
begin
DllApplication := Application;
DllScreen := Screen;
DLLProc := @LibraryProc;
end.