Before Step 3 of Guide

Open Beginner friendly
#5 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
1/5
Estimated time
Under an hour
Newbie friendliness
72/100
Issue type
Documentation
Clarity
Clearly specified
Activity status
Stale
Tech stack
cpp
Domain
documentation

Research direction

Review the guide section immediately before Step 3 and the shown C++ WebView2 example. Add the Microsoft::WRL namespace note before Step 3 so Callback is defined, then verify the example no longer presents an undefined Callback error.

Written by the indexing model from the issue text.

Description

bug

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 {
Dominant language
C++
Stars
1k
Forks
521
Avg merge
13m
Merged PRs (30d)
1

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from MicrosoftEdge/WebView2Samples

All issues in MicrosoftEdge/WebView2Samples

Similar issues

More C++ issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.