本文介绍了在Delphi或C ++ Builder中使用Chromium Edge WebView2的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

现在Microsoft Chromium Edge是最终版本,是否可以在Delphi或C ++ Builder中使用它?

Now that the Microsoft Chromium Edge is final, is it possible to use it in Delphi or C++ Builder?

据我所知,它基于WebView2组件.

As I understand it is based on a WebView2 component.

是否存在诸如TWebView2之类的组件,或者Embarcadero是否会提供?有没有一个示例如何在Delphi/C ++ Builder中托管WebView2?

Is there a component such as TWebView2 or will Embarcadero provide one? Is there an example how to host WebView2 in Delphi / C++ Builder?

是否足以安装最新的Edge版本,以便应用程序可以使用它?

Is it enough to install the latest Edge version so the app can utilize it?

有一个旧版本的示例-EdgeHTML-此处:在Delphi/C ++ Builder中使用WebView(EdgeHTML)

There was an example for the older version - EdgeHTML - here:Using WebView (EdgeHTML) in Delphi / C++ Builder

推荐答案

您可以在应用程序中使用WebView2.

You can use WebView2 in your application.

有关如何使用C ++在应用程序中托管WebView2的示例,请参阅 Webview2示例.

For samples of how to host WebView2 in your application using C++, please refer to Webview2 Samples.

您还需要安装 Webview2 SDK 以及Microsoft Edge (铬).

You will also need to install Webview2 SDK as well as Microsoft Edge(Chromium).

有关使用Webview2的其他详细信息,请参考 Microsoft Edge WebView2 .

For other details about using Webview2, please refer to Microsoft Edge WebView2.

注意:Webview2仍处于预览阶段,功能发布中可能会发生重大更改.

Notes: Webview2 is still in preview phase, breaking changes could happen in the feature releases.

这篇关于在Delphi或C ++ Builder中使用Chromium Edge WebView2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-27 02:19