MicrosoftEdge / MicrosoftEdge/WebView2Samples
Before Step 3 of Guide
Open
Beginner friendly
Nobody has claimed this yet.
bug
- Dominant language
- C++
- Stars
- 1k
- Forks
- 521
- Avg merge
- 13m
- Merged PRs (30d)
- 1
Description
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 {
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
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.
Assessment
- Tech stack
- cpp
- Domain
- documentation
- Issue type
- Documentation
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 72/100