tiny c++

Jan 1, 2009 at 2:51pm
why is it that my turbo c++ is too small (literally), if you didn't get that then.. i mean, the window of my c++ is small.. and when i execute c++ a message window appears, and it goes like this:

This system does not support fullscreen mode. Choose 'Close' to terminate the application.
Options: 'Close' 'Ignore'
-when i choose close, it exits
--when i choose ignore, c++ shows up but it is too small.

my OS is windows vista starter edition.

Jan 1, 2009 at 4:40pm
Windows Vista doesn't support a full-screen Console Window.
Jan 1, 2009 at 4:58pm
oh crap.

can i atleast make it bigger?
Jan 1, 2009 at 5:20pm
Yes, here is how to do that using Windows API:
1
2
3
4
RECT Size;
GetWindowRect(GetConsoleWindow(),&Size);
Size.bottom += 200;
SetWindowPos(GetConsoleWindow(),0,Size.left,Size.top,Size.right,Size.bottom,0);

That gets the old window size and makes it higher. If you want it to be larger, you will have to resize the buffer size too.

(A different way is using pdcurses)
Last edited on Jan 1, 2009 at 5:29pm
Topic archived. No new replies allowed.