您当前的位置: 首页 > 

顺其自然~

暂无认证

  • 2浏览

    0关注

    1317博文

    0收益

  • 0浏览

    0点赞

    0打赏

    0留言

私信
关注
热门博文

CEF网址打不开,提示Check failed: fallback_available == base::win::GetVersion() > base::win::VERSION_WIN8

顺其自然~ 发布时间:2021-02-02 15:51:35 ,浏览量:2

这个错误表示应用程序需要一个带有相关兼容性条目的app.manifest,这里我们需要将,我们下载的源码路径下测试路径下(tests\cefsimple)的cefsimple.exe.manifest和compatibility.manifest文件拷贝到我们的项目中,如图所示:

然后项目属性-》生成事件-》后期生成事件-》命令行,输入如下命令:

setlocal
mt.exe -nologo -manifest "compatibility.manifest" "TestCef.exe.manifest" -outputresource:"../Debug/TestCef.exe";#1
if %errorlevel% neq 0 goto :cmEnd
:cmEnd
endlocal & call :cmErrorLevel %errorlevel% & goto :cmDone
:cmErrorLevel
exit /b %1
:cmDone

if %errorlevel% neq 0 goto :VCEnd

注:mt.exe将manifest文件放入exe中,这样在生成文件的目录下就看不到manifest文件了。同时他也可以将manifest文件从exe文件中取出来。

如图所示:

然后再重新生成项目就可以访问了

关注
打赏
1662339380
查看更多评论
立即登录/注册

微信扫码登录

0.1040s