c++
-
First of all, C++ is a useful header for your question only because it gave me a clue that you were totally in the wrong place. 'Change screen resolution', would have been better. 'Change screen resolution in Turbo C++' would be better still, given that almost everyone on this site is using visual studio. I doubt that Turbo C++ supports Microsoft .NET, which means that the C++/CLI forum is definately the wrong place to ask this question. Try the Visual C++ forum.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
-
First of all, C++ is a useful header for your question only because it gave me a clue that you were totally in the wrong place. 'Change screen resolution', would have been better. 'Change screen resolution in Turbo C++' would be better still, given that almost everyone on this site is using visual studio. I doubt that Turbo C++ supports Microsoft .NET, which means that the C++/CLI forum is definately the wrong place to ask this question. Try the Visual C++ forum.
Christian Graus - Microsoft MVP - C++ Metal Musings - Rex and my new metal blog "I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
Christian Graus wrote:
C++ is a useful header for your question only because it gave me a clue that you were totally in the wrong place
:laugh:
Christian Graus wrote:
Turbo C++
Haven't worked with that in a long, long time. I know I still have it around here somewheres :->
-
You have to include windows.h header. Here is an working example.
#include
#include
#includeint main() {
DEVMODE devmode; devmode.dmPelsWidth = 1024; devmode.dmPelsHeight = 768; devmode.dmFields = DM\_PELSWIDTH | DM\_PELSHEIGHT; devmode.dmSize = sizeof(DEVMODE); long result = ChangeDisplaySettings(&devmode, 0); return 0;
}