Today I’ve made a little program to quickly change the screen resolution from the command line. It’s written in C++, and can be downloaded from here. The source code looks like this:

Changing the resolution is done using the Win32 API ChangeDisplaySettings. After setting the resolution, running applications need to be notified which is done by calling SendMessage. The rest is pretty straightforward.

Aswin van Woudenberg

I'm a lecturer at the NHL Stenden University of Applied Sciences where I teach Artificial Intelligence, Algorithms and Concurrent Programming. Together with my students I'm building dialogue systems that can learn, reason and converse in a variety of domains.

1 Comment

Jurre · January 26, 2009 at 11:19 am

Ja, opzich niet slecht. Ik had het zelf net even iets anders gedaan. Net wat beter, maarja. Ik had er een driehoek bij gedaan.

Leave a Reply

Your email address will not be published. Required fields are marked *