Skip to content

Before Step 3 of Guide #5

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
tgraupmann opened this issue Dec 5, 2019 · 1 comment
Open

Before Step 3 of Guide #5

tgraupmann opened this issue Dec 5, 2019 · 1 comment
Labels
bug Something isn't working

Comments

@tgraupmann
Copy link

tgraupmann commented Dec 5, 2019

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 {
@pagoe-msft
Copy link
Contributor

Hi tgraupmann,

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

@pagoe-msft pagoe-msft added the bug Something isn't working label Jan 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants