2017-10-19 12:11:47 +02:00
|
|
|
program SimpleBrowser;
|
|
|
|
|
2023-11-26 19:28:28 +01:00
|
|
|
{$I ..\..\..\source\cef.inc}
|
2017-10-19 12:11:47 +02:00
|
|
|
|
|
|
|
uses
|
2023-11-26 19:28:28 +01:00
|
|
|
{$IFDEF DELPHI16_UP}
|
2017-12-18 19:38:56 +01:00
|
|
|
Vcl.Forms,
|
2023-11-26 19:28:28 +01:00
|
|
|
{$ELSE}
|
|
|
|
Forms,
|
|
|
|
{$ENDIF}
|
2021-03-20 13:16:08 +01:00
|
|
|
uCEFLoader in 'uCEFLoader.pas',
|
|
|
|
uSimpleBrowser in 'uSimpleBrowser.pas' {Form1};
|
2017-10-19 12:11:47 +02:00
|
|
|
|
|
|
|
{$R *.res}
|
|
|
|
|
2023-11-26 19:28:28 +01:00
|
|
|
const
|
|
|
|
IMAGE_FILE_LARGE_ADDRESS_AWARE = $0020;
|
|
|
|
|
|
|
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
|
|
{$IFDEF WIN32}{$SetPEFlags IMAGE_FILE_LARGE_ADDRESS_AWARE}{$ENDIF}
|
2017-10-19 12:11:47 +02:00
|
|
|
|
|
|
|
begin
|
2018-06-18 17:01:44 +02:00
|
|
|
// This demo has the GlobalCEFApp creation, initialization and destruction in uCEFLoader.pas
|
|
|
|
// Read the code comments in uCEFLoader.pas for more details.
|
2017-10-19 12:11:47 +02:00
|
|
|
|
2018-06-18 17:01:44 +02:00
|
|
|
Application.Initialize;
|
|
|
|
{$IFDEF DELPHI11_UP}
|
|
|
|
Application.MainFormOnTaskbar := True;
|
|
|
|
{$ENDIF}
|
|
|
|
Application.CreateForm(TForm1, Form1);
|
|
|
|
Application.Run;
|
2017-10-19 12:11:47 +02:00
|
|
|
end.
|