Hi, could some one please tell me a piece of code in c++, not mfc, on how to make it DOS window a full screen. like, when the program is run, it runs in full screen. Thanks.
Hi, could some one please tell me a piece of code in c++, not mfc, on how to make it DOS window a full screen. like, when the program is run, it runs in full screen. Thanks.
I'd suggest a search since this has been addressed before.Originally Posted by kermi3
I don't know any code for it but you can push Alt-Enter.
My computer is awesome.
Read my post here: http://cboard.cprogramming.com/showthread.php?t=49825
gg
[EDIT]
In the AltEnter() function remove the line "SetForegroundWindow(GetConsoleWindow());"
GetConsoleWindow() is only available under XP and 2000 Server.
[/EDIT]
Last edited by Codeplug; 03-07-2005 at 07:13 PM.
In the console, you could try this, but it isn't very good and doesn't take into account different screen resolutions.
Another way you could do it would be to include the directX lib files and use them, but thats slightly more complicatedCode:system("mode con:lines=100); system("mode con:cols=200);