📄 server.dpr
字号:
program server;
uses
Forms,
Userver in 'Userver.pas' {frmServer},
Udm in 'Udm.pas' {DMServer: TDataModule},
USplash in 'USplash.pas' {frmSplash},
TypeInc in 'TypeInc.pas',
Ulogin in 'Ulogin.pas' {frmlogin};
{$R *.res}
begin
Application.Initialize;
//============================
frmSplash := TfrmSplash.Create(Application);
frmSplash.Show;
frmSplash.Refresh;
//============================
Application.Title := 'CnMessage 服务器';
Application.CreateForm(TDMServer, DMServer);
Application.CreateForm(TfrmServer, frmServer);
frmSplash.free;
Application.Title := '系统登录';
frmlogin:= Tfrmlogin.Create(Application);
frmlogin.ShowModal ;
if frmlogin.Tag=0 then
begin
frmlogin.Free;
frmServer.Free;
DMServer.Free;
exit;
end;
frmlogin.Free;
Application.Title := 'CnMessage 服务器';
Application.Run;
end.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -