VS2017 debugging with High DPI scaling override

David Browning 1 Reputation point
2020-11-06T21:17:56.677+00:00

I have a C++ openGL / GLUT application that requires overriding high dpi scaling behavior performed by "application" selected in the compatibility options. When I run this application outside of visual studio and attach to it, it works as expected. When I try to use Visual Studio to launch and debug this application it uses the scaled resolution. Any ideas what visual studio executable to I need to override the DPI scaling on to prevent this behavior? I am using VS2017 pro.

Visual Studio Debugging
Visual Studio Debugging
Visual Studio: A family of Microsoft suites of integrated development tools for building applications for Windows, the web and mobile devices.Debugging: The act or process of detecting, locating, and correcting logical or syntactical errors in a program or malfunctions in hardware. In hardware contexts, the term troubleshoot is the term more frequently used, especially if the problem is major.
996 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dylan Zhu-MSFT 6,416 Reputation points
    2020-11-09T04:07:51.077+00:00

    Hi DavidBrowning,

    Maybe you could set the "DPI Awareness" to "High DPI Aware" in Project properties->Manifest Tool ->Input and Output.
    38177-image.png

    Best Regards,
    Dylan

    ----
    If the answer is helpful, please click "Accept Answer" and upvote it.
    Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.