microsoft / microsoft/DirectX-Graphics-Samples

Memory Management Sample - ID2D1Factory::GetDesktopDpi Deprecated

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

Nobody has claimed this yet.

bug samples
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

  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.

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.