MicrosoftEdge / MicrosoftEdge/WebView2Samples
unable to move the Win32_GettingStarted sample code in c++ static libray
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 1k
- Forks
- 521
- Avg merge
- 13m
- Merged PRs (30d)
- 1
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?
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
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.
Assessment
- Tech stack
- cpp
- Domain
- build-system, desktop
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 20/100