Hello all C++ guru's! I'm a student and I have a project in C++ B now.
I'm wondering if it's possible to change the size of a cmd / comman prompt / console window from within a program?
If you build a program and start it, you can right-click and choose properties and layout and there change the window size.
I'm wondering if it's possible to change the size of a cmd / comman prompt / console window from within a program?
If you build a program and start it, you can right-click and choose properties and layout and there change the window size.
Vlad - MS MVP [2007 - 2012] - www.FeinSoftware.com
Convenience and productivity tools for Microsoft Visual Studio: FeinViewer - an integrated GDI objects viewer for Visual C++ Debugger, and more...
Thanks for answers, but that doesn't seem to be just it. You know, standard character height is what? 8x6 pixels? But you can change that to something else and that's what I want to do from within my program. But maybe I'll figure out a way...
Get Microsoft Visual C++ Express here or CodeBlocks here.
Get STLFilt here to radically improve error messages when using the STL.
Get these two can't live without C++ libraries, BOOST here and Loki here.
Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
Always use [code] code tags [/code] to make code legible and preserve indentation.
Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.
Yes i know, there is no documented way to do it pre-vista, however in kernal32.dll is undocumented SetConsoleFont( HANDLE, DWORD) that could be used but its not so easy to find information about undocumented functions.
Get Microsoft Visual C++ Express here or CodeBlocks here.
Get STLFilt here to radically improve error messages when using the STL.
Get these two can't live without C++ libraries, BOOST here and Loki here.
Check your code with the Comeau Compiler and FlexeLint for standards compliance and some subtle errors.
Always use [code] code tags [/code] to make code legible and preserve indentation.
Do not ask for help writing destructive software such as viruses, gamehacks, keyloggers and the suchlike.
Bookmarks