Project2.dpr 529 B

12345678910111213141516171819202122232425262728
  1. program Project2;
  2. uses
  3. Vcl.Forms,
  4. ceflib,
  5. Unit2 in 'Unit2.pas' {Form2};
  6. {$R *.res}
  7. procedure RegisterSchemes(const registrar: ICefSchemeRegistrar);
  8. begin
  9. registrar.AddCustomScheme('local', True, True, False);
  10. end;
  11. begin
  12. CefCache := 'Cache';
  13. CefLocale := 'es';
  14. CefOnRegisterCustomSchemes := RegisterSchemes;
  15. CefSingleProcess := False;
  16. if not CefLoadLibDefault then
  17. Exit;
  18. Application.Initialize;
  19. Application.MainFormOnTaskbar := True;
  20. Application.CreateForm(TForm2, Form2);
  21. Application.Run;
  22. end.