Check the expected WebView2 interface is defined

This results in a single intelligible error instead of a hundred of less
clear ones in case our code is compiled against an out of date SDK
version.

There doesn't seem to be any way to check the version directly, so just
check that the interface which hadn't been defined in the previous
version is defined now to check for it indirectly.
This commit is contained in:
Vadim Zeitlin
2020-03-11 19:26:39 +01:00
parent e1dcfc73d1
commit 9203f685ee

View File

@@ -15,6 +15,10 @@
#include <Webview2.h>
#ifndef __ICoreWebView2Environment_INTERFACE_DEFINED__
#error "WebView2 SDK version 0.9.430 or newer is required"
#endif
class wxWebViewEdgeImpl
{
public: