1
0
mirror of https://github.com/salvadordf/CEF4Delphi.git synced 2025-06-22 22:17:48 +02:00
Files
CEF4Delphi/demos/Lazarus_Windows/SimpleServer/SimpleServer.lpr
Salvador Díaz Fau 9e5b90303c Use the main cef.inc file in all demos
Remove unused uCEFSentinel references.
Remove duplicated licenses.
2023-11-27 18:21:07 +01:00

34 lines
607 B
ObjectPascal

program SimpleServer;
{$MODE Delphi}
{$I ..\..\..\source\cef.inc}
uses
{$IFDEF DELPHI16_UP}
Vcl.Forms,
{$ELSE}
Forms, Interfaces,
{$ENDIF }
uCEFApplication,
uSimpleServer in 'uSimpleServer.pas' {SimpleServerFrm};
{.$R *.res}
begin
GlobalCEFApp := TCefApplication.Create;
if GlobalCEFApp.StartMainProcess then
begin
Application.Initialize;
{$IFDEF DELPHI11_UP}
Application.MainFormOnTaskbar := True;
{$ENDIF}
Application.CreateForm(TSimpleServerFrm, SimpleServerFrm);
Application.Run;
end;
GlobalCEFApp.Free;
GlobalCEFApp := nil;
end.