Best embedded browser for C/C++

Posted on 2013-11-19
Last Modified: 2013-11-22
I am considering using an embedded browser in a C/C++ application as a user interface.

Can anyone recommend a good browser for this use and explain why the one you suggest is a good choice.

Thank you!
Question by:anAppBuilder
  • 2
  • 2

Expert Comment

ID: 39663237
Webkit can be embedded into a c++ application with a bit of work - see for an example.

Many frameworks also provide browser controls e.g. MFC has the WebBrowser control, Qt has the WebView control, wxWidgets has a couple of options you can use. There is a Chrome Frame ActiveX control, or the old faithful iFrame and all its attendant memory leaks,

I have only used webkit (not in C++ but Java on an Android-based system) and found it a bit buggy for my liking, but then I was interfacing with  complex Flash objects produced by a 3rd party app and Flash isn't exactly the most solid platform either. The project was abandoned due to bugs in webkit and Flash which weren't getting fixed anytime soon.

In summary there are very many options, none of them without their faults and foibles. Is HTML5 compatibility an issue for you for instance?

If you are looking for a web-type UI why not design the system as a web application? PHP is very easy to get started with if you're familiar with C++, or just use C++ cgi scripts. Is there any particular reason in your spec why not?


Author Comment

ID: 39666466
Thank you, Chris, for sharing your experience with Webkit.

Yes, HTML5 is a requirement.

There are a number of reasons why we prefer not to create a web app.  Therefore we want to investigate all the other options.

Accepted Solution

tampnic earned 500 total points
ID: 39668407
A bit of googling suggests that either or support most of the HTML5 spec. I know GeckoFX requires .NET ... are you happy including .NET in the dependencies of your app? I'm assuming you are targeting a Windows platform, Mono is available for Linux as a .NET substitute.


Author Closing Comment

ID: 39670891
Thanks again, Chris

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Article by: SunnyDark
This article's goal is to present you with an easy to use XML wrapper for C++ and also present some interesting techniques that you might use with MS C++. The reason I built this class is to ease the pain of using XML files with C++, since there is…
This article shows you how to optimize memory allocations in C++ using placement new. Applicable especially to usecases dealing with creation of large number of objects. A brief on problem: Lets take example problem for simplicity: - I have a G…
The goal of the video will be to teach the user the concept of local variables and scope. An example of a locally defined variable will be given as well as an explanation of what scope is in C++. The local variable and concept of scope will be relat…
The viewer will learn how to clear a vector as well as how to detect empty vectors in C++.

948 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now