There is more information at Get started with WebView2 in Win32 apps, which includes some samples. It's necessary to include headers with the WebView2 SDK installed.
Is CreateCoreWebView2Environment function part of WebView2.tlb?
Vishnu Gopalakrishnan
126
Reputation points
I am writing a win32 WebView2 client application. I would like to include a very minimal build dependencies to the application rather than including the entire WebView2 package. For that, is it enough to use WebView2.tlb?
My problem is that WebView2.tlb does not contain the CreateCoreWebView2EnvironmentWithOptions function. Is this understanding correct?
To avoid the build error, I have forced to include WebView2EnvironmentOptions.h & WebView2Loader.dll.lib. Is there any better way to avoid this build dependency just by using WebView2.tlb?
Looking forward to hearing from you.
Accepted answer
-
Xiaopo Yang - MSFT 12,726 Reputation points Microsoft Vendor
2023-03-17T06:31:37.34+00:00