如何将 WebKit 嵌入到我的 C/C++/Win32 应用程序中?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/1924255/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-27 21:36:26  来源:igfitidea点击:

How to embed WebKit into my C/C++/Win32 application?

c++cwinapiwebkitembedding

提问by Pavel Vlasov

The solutions I have found are irrelevant:

我发现的解决方案是无关紧要的:

  • someone used WebKit in a Delphi project
  • someone used it with Java
  • there is QtWebKit (about:blank demo app takes 44 megs)
  • .Net port of it
  • GTK+ port
  • 有人在 Delphi 项目中使用过 WebKit
  • 有人将它与 Java 一起使用
  • 有 QtWebKit(关于:空白演示应用程序需要 44 兆字节)
  • 它的.Net端口
  • GTK+ 端口

I need a guide how to embed WebKit instance into a pure C/C++ application under Win32.

我需要一个指南,如何将 WebKit 实例嵌入到 Win32 下的纯 C/C++ 应用程序中。

采纳答案by Phil Booth

Brent Fulgham has put lots of work into producing a Windows Cairo port of WebKit, which doesn't rely on Apple's proprietary backend stuff (e.g. CoreGraphics, CoreFoundation, CFNetwork). I believe that is what you are after. The details aren't entirely collated in one place, but there is some information in the Trac wikiand other bits are dotted around on Brent's blog.

Brent Fulgham 投入了大量精力来制作 WebKit 的 Windows Cairo 端口,它不依赖于 Apple 的专有后端内容(例如 CoreGraphics、CoreFoundation、CFNetwork)。我相信这就是你所追求的。详细信息并未完全整理在一处,但Trac wiki 中一些信息,而其他一些信息散布在Brent 的博客上

EDIT: Link to Brent's project on sourceforge

编辑链接到布伦特在 sourceforge 上的项目

EDIT 2: News of some interesting progress from Brent's blog

编辑 2来自 Brent 博客的一些有趣进展的消息

回答by Andrei M.

WebKit for Windows are still use VS 2005. So, if you use VS2010 or 2012, you need to build WebKit on this VS from source, because different vc*.dll runtime redistributable versions.

Windows 的 WebKit 仍然使用 VS 2005。因此,如果您使用 VS2010 或 2012,则需要在此 VS 上从源代码构建 WebKit,因为不同的 vc*.dll 运行时可再发行版本。

For example, you can use Brent Fulgham's test projectand advices to build WebKit on new VS from this blogto test your build.

例如,您可以使用Brent Fulgham 的测试项目和建议在此博客的新 VS 上构建 WebKit来测试您的构建。

回答by blzfans

Embed WebKit In 3D Games

在 3D 游戏中嵌入 WebKit

https://sourceforge.net/projects/wke/

https://sourceforge.net/projects/wke/