Original Post
Hello, I want to change the resolution settings during the execution of my game so that they are locked at 32 bit and 1024x768. I have tried using ::ChangeDisplaySettings() but to no avail. My guess is that the DEVMODE I am passing it is not valid. So my real question is, how exactly do I make a valid DEVMODE? I initialized the dmBitsPerPel and the dmPelsWidth/Height members to 32 and 1024/768, but I guess this is not enough. I checked out the MSDN on it, but don't know how to set the dmSize member to the appropriate size first. Any help would be greatly appreciated. By the way I am developing a 2D hack and slash adventure game (demo available in a week, maybe..) using c++ and MFC in visual studio 6.0.