guiclient.dpr 611 B

1234567891011121314151617181920212223242526272829303132
  1. program guiclient;
  2. uses
  3. sysutils,
  4. ceflib,
  5. Windows,
  6. Forms,
  7. main in 'main.pas' {MainForm},
  8. ceffilescheme in '..\filescheme\ceffilescheme.pas';
  9. {$R *.res}
  10. procedure RegisterSchemes(const registrar: ICefSchemeRegistrar);
  11. begin
  12. registrar.AddCustomScheme('local', True, True, False);
  13. end;
  14. begin
  15. CefCache := 'Cache';
  16. CefOnRegisterCustomSchemes := RegisterSchemes;
  17. CefSingleProcess := False;
  18. if not CefLoadLibDefault then
  19. Exit;
  20. CefRegisterSchemeHandlerFactory('local', '', TFileScheme);
  21. Application.Initialize;
  22. Application.CreateForm(TMainForm, MainForm);
  23. Application.Run;
  24. end.