Hey, I'm trying to get a script where some C++ makes the window turn full-screen... And well, I'm finding it stupidly hard. Everything I search on Google just... Plain doesn't work, outdated code maybe?
That is my code. I had been putting in the DEVMODE manually, but someone told me I should get a function to find out the values for me... Either way outputs the same result, my screen goes black - and then nothing happens. I have to turn my PC off and try again.
(I'm using Visual C++ 2008 Express Edition, running on Windows 7 - just in case that does make a difference)
I would really appreciate a hand, thanks if anyone can help
When screen go black like that it's something really bad with the settings. Since you're setting a quite low resolution I would say that the refresh rate is probably way to high. Try hardcoding it to something like 60 Hz just to check if that's the root cause.
Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are, by
definition, not smart enough to debug it.
- Brian W. Kernighan
Bookmarks