I've verified that "WebView2Loader.dll" is in the same folder as my project's executable after a successful build:
When I try to create a wxWebView control using the Edge back-end, I get the following error message at run-time:
Code: Select all
...wxWidgets-3.1.4\src\msw\webview_edge.cpp(133): 'GetCoreWebView2BrowserVersionInfo' failed with error 0x80070002 (The system cannot find the file specified.).
Code: Select all
wxWebView* webView = nullptr;
if (wxWebView::IsBackendAvailable(wxWebViewBackendEdge))
{
webView = wxWebView::New(this, wxID_ANY, "about:blank", wxDefaultPosition, wxDefaultSize, wxWebViewBackendEdge);
}
else
{
webView = wxWebView::New(this, wxID_ANY, "about:blank", wxDefaultPosition, wxDefaultSize, wxWebViewBackendIE);
}