microsoft / microsoft/DirectX-Graphics-Samples
Memory Management Sample - ID2D1Factory::GetDesktopDpi Deprecated
Nobody has claimed this yet.
- Dominant language
- C++
- Stars
- 6.8k
- Forks
- 2.2k
- PR merge metrics
- No merged PRs in 30d
Description
Compilation error in Memory Management Sample
error C4996: 'ID2D1Factory::GetDesktopDpi': Deprecated. Use DisplayInformation::LogicalDpi for Windows Store Apps or GetDpiForWindow for desktop apps.
I know the error message is explicitly saying how to resolve the issue but just wanted to notify you guys. Cheers.
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 in the TechniqueDemos/D3D12MemoryManagement sample and search for the ID2D1Factory::GetDesktopDpi call that triggers the reported C4996 error. Check the Windows guidance in the compiler message, then verify that the sample compiles without this deprecation error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- computer-graphics, operating-systems
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100