advertisingreqop.blogg.se

Webview2
Webview2










webview2

We'll add WebView2 features - actually, the features have already been added, but follow along in the setup and explanation steps. To keep this tutorial focused on WebView2-specific coding, we start from an existing Microsoft Visual Studio project ( WebView2GettingStarted) that's stored in the WebView2Samples GitHub repo. An optional step below allows you to delete the WebView2 code from HelloWebView.cpp, so that you can add it yourself, if you want. The code that you add in this tutorial's steps, has already been added to the sample repo, for you. Step 3 - Clone or download the WebView2Samples repo To do that, in a new window or tab, see Install a preview channel of Microsoft Edge in Set up your Dev environment for WebView2.

  • If it's not installed already, install a preview channel of Microsoft Edge.
  • Step 2 - Install a preview channel of Microsoft Edge Then return to this page and continue below. Follow the steps there to do a basic default installation of Visual Studio.
  • If Microsoft Visual Studio isn't installed already, in a new window or tab, see Install Visual Studio in Set up your Dev environment for WebView2.
  • This tutorial requires Microsoft Visual Studio, not Microsoft Visual Studio Code.
  • Solution file: WebView2GettingStarted.sln.
  • The completed tutorial project is available in the WebView2Samples repo: Instead, you start with the completed project that's in the repo. This tutorial does not have you create a new project you don't use a project template in Visual Studio to create a new project.
  • Follow the remaining steps in this article about adding and understanding the WebView2 code.
  • Optionally delete the WebView2 code from HelloWebView.cpp to restore the Win32 baseline app.
  • Clone or download the WebView2Samples repo to your local drive.
  • webview2

    To use this article, you do the following: The project uses the Win32_GettingStarted (WebView2GettingStarted.sln) directory that's part of the WebView2Samples repo. This tutorial starts by opening an existing Win32 app project that has WebView2 code added. In this article, you set up your development tools (if not done already), learn how to add WebView2 code to a Win32 app project, and learn about WebView2 concepts along the way.












    Webview2