Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

unable to move the Win32_GettingStarted sample code in c++ static libray

Open
#151 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
20/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
cpp

Research direction

Start with the Win32_GettingStarted sample and inspect how its static C++ library is built and linked after the WebView2 NuGet packages are added. Reproduce the linker error for GetClientRect, then compare the library and application link settings. Done means the sample compiles successfully with the webview-creation code moved into the static library.

Written by the indexing model from the issue text.

Description

Hi, I have to move the code that create the webview from the main c++ app to a static c++ library.
I have added the two nuget packages but if I try to compile the sample I have a link error with the GetClientRect function.
Am I missing something? How can I solve this link error?

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.