WebView2Samples
WebView2Samples copied to clipboard
Before Step 3 of Guide
Maybe just mention the using namespace before Step 3.
using namespace Microsoft::WRL;
Otherwise there's an undefined Callback error since the example code isn't namespaced...
// Step 3 - Create a single WebView within the parent window
// Locate the browser and set up the environment for WebView
CreateWebView2EnvironmentWithDetails(nullptr, nullptr, nullptr,
Callback<IWebView2CreateWebView2EnvironmentCompletedHandler>(
[hWnd](HRESULT result, IWebView2Environment* env) -> HRESULT {
Hi tgraupmann,
Thanks for the feedback! Could you clarify your request? I believe we do mention the namespace in Step 2.