2017-10-19 12:11:47 +02:00
|
|
|
program SimpleBrowser;
|
|
|
|
|
2023-11-27 18:21:07 +01:00
|
|
|
{$I ..\..\..\source\cef.inc}
|
2017-10-19 12:11:47 +02:00
|
|
|
|
|
|
|
uses
|
2019-05-19 16:08:15 +02:00
|
|
|
Forms, Interfaces,
|
2017-12-18 19:38:56 +01:00
|
|
|
Windows,
|
2017-10-19 12:11:47 +02:00
|
|
|
uCEFApplication,
|
2018-06-18 17:01:44 +02:00
|
|
|
uSimpleBrowser in 'uSimpleBrowser.pas' {Form1},
|
|
|
|
uCEFLoader in 'uCEFLoader.pas';
|
2017-10-19 12:11:47 +02:00
|
|
|
|
2025-05-20 19:35:57 +02:00
|
|
|
// CEF needs to set the LARGEADDRESSAWARE ($20) flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
|
|
{$IFDEF WIN32}{$SetPEFlags $20}{$ENDIF}
|
2017-10-19 12:11:47 +02:00
|
|
|
|
2024-05-02 12:31:19 +02:00
|
|
|
{$R *.res}
|
|
|
|
|
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;
|
|
|
|
Application.CreateForm(TForm1, Form1);
|
|
|
|
Application.Run;
|
2017-10-19 12:11:47 +02:00
|
|
|
end.
|