2017-12-18 19:38:56 +01:00
|
|
|
program SimpleServer;
|
|
|
|
|
2019-05-19 16:08:15 +02:00
|
|
|
{$MODE Delphi}
|
|
|
|
|
2023-11-27 18:21:07 +01:00
|
|
|
{$I ..\..\..\source\cef.inc}
|
2017-12-18 19:38:56 +01:00
|
|
|
|
|
|
|
uses
|
|
|
|
{$IFDEF DELPHI16_UP}
|
|
|
|
Vcl.Forms,
|
|
|
|
{$ELSE}
|
2019-05-19 16:08:15 +02:00
|
|
|
Forms, Interfaces,
|
2017-12-18 19:38:56 +01:00
|
|
|
{$ENDIF }
|
|
|
|
uCEFApplication,
|
|
|
|
uSimpleServer in 'uSimpleServer.pas' {SimpleServerFrm};
|
|
|
|
|
2019-05-19 16:08:15 +02:00
|
|
|
{.$R *.res}
|
2017-12-18 19:38:56 +01:00
|
|
|
|
2024-05-02 12:31:19 +02:00
|
|
|
{$R *.res}
|
|
|
|
|
2017-12-18 19:38:56 +01:00
|
|
|
begin
|
2023-12-23 18:58:40 +01:00
|
|
|
GlobalCEFApp := TCefApplication.Create;
|
|
|
|
GlobalCEFApp.SetCurrentDir := True;
|
2017-12-18 19:38:56 +01:00
|
|
|
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
|
|
begin
|
|
|
|
Application.Initialize;
|
|
|
|
{$IFDEF DELPHI11_UP}
|
|
|
|
Application.MainFormOnTaskbar := True;
|
|
|
|
{$ENDIF}
|
|
|
|
Application.CreateForm(TSimpleServerFrm, SimpleServerFrm);
|
|
|
|
Application.Run;
|
|
|
|
end;
|
|
|
|
|
|
|
|
GlobalCEFApp.Free;
|
2018-05-24 19:15:41 +02:00
|
|
|
GlobalCEFApp := nil;
|
2017-12-18 19:38:56 +01:00
|
|
|
end.
|