Delphi XE10使用dcef3-2623访问网页奇慢无比!! 用Delphi XE10安装了dcef3-2623版本的谷歌控件,做了一个浏览器的壳,只需要简单的显示一下网页并和自己的网站做一些数据交互,但是访问局域网自己的网站都奇慢无比,网上查询了资料,只有说设置DCEF的CefSingleProcess := True可以解决问题,测试后无效。跪求大神帮忙解决下,要崩溃了。。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 没有大神了解dcef这个玩意儿的吗 此问题的处理,需要在项目文件中添加如下代码:procedure RegisterSchemes(const registrar: ICefSchemeRegistrar);begin registrar.AddCustomScheme('local', True, True, False);end;begin CefCache := 'cache'; CefOnRegisterCustomSchemes := RegisterSchemes; CefSingleProcess := False; if not CefLoadLibDefault then Exit; CefRegisterSchemeHandlerFactory('local', '', TFileScheme); Application.Initialize; Application.CreateForm(TForm1, Form1); Application.Run;end.注意:是“Application.Initialize;”这句之前的部分 请问TFileScheme需要引用那个单元文件? 在提交前删除原记录,不能再添加 win7 下星号密码查看如何实现的? 求一个算法!谢谢! 请问如何成为阳光型的男孩(阳光型的男程序员)? 请教一个查询写法!!!高手进!!! 关于privated,published,protected 的区分 怎样进行MD5加密,在线等待... 如何使用SPY++? ado连接错误! 如何实现32字节整数的高字节与低字节之间转化? 在xe3中开发activex组件,给接口添加方法后,在什么地方输入代码? Byte数据在未填充的位置上补充byte($00)
没有大神了解dcef这个玩意儿的吗
procedure RegisterSchemes(const registrar: ICefSchemeRegistrar);
begin
registrar.AddCustomScheme('local', True, True, False);
end;begin
CefCache := 'cache';
CefOnRegisterCustomSchemes := RegisterSchemes;
CefSingleProcess := False;
if not CefLoadLibDefault then
Exit; CefRegisterSchemeHandlerFactory('local', '', TFileScheme); Application.Initialize;
Application.CreateForm(TForm1, Form1);
Application.Run;
end.
注意:是“Application.Initialize;”这句之前的部分