📄 ticket04049.dpr
字号:
library Ticket04049;
//program Ticket04049;
{ 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,
GlobalLibUnit in '..\template\GlobalLibUnit.pas',
A0107F002Unit in '..\template\A0107F002Unit.pas' {A0107F002Frm},
DataLinkUnit in '..\template\DataLinkUnit.pas' {DMMain: TDataModule},
F007Unit in '..\template\F007Unit.pas' {F007Frm},
A0106F002Unit in '..\template\A0106F002Unit.pas' {A0106F002Frm},
LeftAndTopUnit in '..\TEMPLATE\LeftAndTopUnit.pas' {LeftAndTopFrm};
{$R *.RES}
function EditCheque(strMain:string;gstrOperaterName,gstrInputMethod:string;strDatabase:string;intLeft,intTop:integer):string;
begin
Application.Initialize;
gstrDBPath := strDatabase;
gintleft:=intleft;
ginttop:=inttop;
Application.CreateForm(TDMMain, DMMain);
A04049F002Frm.gstrOperaterName:=gstrOperaterName;
A04049F002Frm.gstrInputMethod:=gstrInputMethod;
A04049F002Frm.Tag:=0;
A04049F002Frm.striniHelpName:=ExtractFilePath(Application.EXEName)+'\ini\Help.ini';;
A04049F002Frm.strEditArray[0]:=strMain;
A04049F002Frm.ShowModal;
A04049F002Frm.Free;
DMMain.Free;
end;
function AddCheque(gstrOperaterName,gstrInputMethod:string;strDatabase:string;intLeft,intTop:integer):string;
begin
Application.Initialize;
gstrDBPath := strDatabase;
gintleft:=intleft;
ginttop:=inttop;
Application.CreateForm(TDMMain, DMMain);
Application.CreateForm(TA04049F002Frm, A04049F002Frm);
A04049F002Frm.gstrOperaterName:=gstrOperaterName;
A04049F002Frm.gstrInputMethod:=gstrInputMethod;
A04049F002Frm.Tag:=1;
A04049F002Frm.striniHelpName:=ExtractFilePath(Application.EXEName)+'\ini\Help.ini';;
A04049F002Frm.ShowModal;
A04049F002Frm.Free;
DMMain.Free;
end;
Exports EditCheque,AddCheque;
begin
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -