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

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

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


Solution 1:

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 wiki and other bits are dotted around on Brent's blog.

EDIT: Link to Brent's project on sourceforge

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

Solution 2:

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.

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

Solution 3:

Embed WebKit In 3D Games

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