C++Language FeatureLearn C++

Learn To Develop Your Own Web Browser App In C++ Builder On Windows (EdgeBrowser)

Developing a full Web Browser may take a lot of time, instead of this there are many components and libraries that you can use in C++ development. In RAD Studio, C++ Builder 10.4 and above, there is new feature called EdgeBrowser which is using Edge Canary, it has new features and much more compatible than previous web browsers and other libs or components. To use this EdgeBrowser;

  1. Install “Edge Canary” version to your Windows
  2. Download “Edge SDK” from the GetIt menu from RAD Studio
  3. Download WebView2 from MS microsoft.web.webview2.0.9.515-prerelease.nupkg or the latest version  
  4. Open downloaded package by 7zip 
  5. Copy required files to your debug or release output directory
    1. If you have a 32bit project copy WebView2Loader.dll from bin/x86
    2. or if you have a 64bit project copy WebView2Loader.dll from bin/x64
  6. Run VCL sample
    1. C++Builder: C:\Users\Public\Documents\Embarcadero\Studio\21.0\Samples\CPP\VCL\WebBrowser\Edge
    2. Delphi: C:\Users\Public\Documents\Embarcadero\Studio\21.0\Samples\Object Pascal\VCL\WebBrowser\Edge

Or you can create an new empty VCL project, drop an edit box and a button to top. Add URL (i.e. https://www.embarcadero.com) to your edit box text.
Drop EdgeBrowser component UI to your form from the component palette, and add this line below on your mouse click

or you can directly navigate your url as below;

And don’t forget to copy 32 or 64 bit WebView2Loader.dll to your output directory.

For more details please read this post.

close

Oh hi there 👋
It’s nice to meet you.

Sign up to receive awesome C++ content in your inbox, every day.

We don’t spam! Read our privacy policy for more info.

Related posts
C++C++11C++14C++17Introduction to C++Learn C++

Discover Function Overloading in C++

C++Learn C++Videos

Learn C++ With Back to Basics: Move Semantics by David Olsen (CPPCon 2020) Video

C++Introduction to C++Learn C++

Learn to Use Pointers and Memory Address of a Variable in C++

C++Introduction to C++Learn C++

Discover Goto and Labels in C++

en_USEnglish