2018-11-17 11:50:34 +01:00
|
|
|
program URLRequest;
|
|
|
|
|
2019-05-19 16:08:15 +02:00
|
|
|
{$MODE Delphi}
|
|
|
|
|
2023-11-27 18:21:07 +01:00
|
|
|
{$I ..\..\..\source\cef.inc}
|
2018-11-17 11:50:34 +01:00
|
|
|
|
|
|
|
uses
|
|
|
|
{$IFDEF DELPHI16_UP}
|
|
|
|
Vcl.Forms,
|
|
|
|
WinApi.Windows,
|
|
|
|
{$ELSE}
|
|
|
|
Forms,
|
2019-05-19 16:08:15 +02:00
|
|
|
LCLIntf, LCLType, LMessages, Interfaces,
|
2018-11-17 11:50:34 +01:00
|
|
|
{$ENDIF }
|
|
|
|
uCEFApplication,
|
|
|
|
uURLRequest in 'uURLRequest.pas' {URLRequestFrm};
|
|
|
|
|
2019-05-19 16:08:15 +02:00
|
|
|
{.$R *.res}
|
2018-11-17 11:50:34 +01:00
|
|
|
|
|
|
|
// CEF3 needs to set the LARGEADDRESSAWARE flag which allows 32-bit processes to use up to 3GB of RAM.
|
|
|
|
// If you don't add this flag the rederer process will crash when you try to load large images.
|
2019-05-19 16:08:15 +02:00
|
|
|
{$SetPEFlags $20}
|
2018-11-17 11:50:34 +01:00
|
|
|
|
|
|
|
begin
|
2019-06-19 16:53:26 +02:00
|
|
|
CreateGlobalCEFApp;
|
2018-11-17 11:50:34 +01:00
|
|
|
|
|
|
|
if GlobalCEFApp.StartMainProcess then
|
|
|
|
begin
|
|
|
|
Application.Initialize;
|
|
|
|
{$IFDEF DELPHI11_UP}
|
|
|
|
Application.MainFormOnTaskbar := True;
|
|
|
|
{$ENDIF}
|
|
|
|
Application.CreateForm(TURLRequestFrm, URLRequestFrm);
|
|
|
|
Application.Run;
|
|
|
|
end;
|
|
|
|
|
|
|
|
DestroyGlobalCEFApp;
|
|
|
|
end.
|