WebView2Samples icon indicating copy to clipboard operation
WebView2Samples copied to clipboard

Before Step 3 of Guide

Open tgraupmann opened this issue 6 years ago • 1 comments

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 {

tgraupmann avatar Dec 05 '19 00:12 tgraupmann

Hi tgraupmann,

Thanks for the feedback! Could you clarify your request? I believe we do mention the namespace in Step 2.

pagoe-msft avatar Jan 13 '20 21:01 pagoe-msft