Article ID: 104094 - Last Review: August 9, 2005 - Revision: 3.0 How to use a console screen from a console application in Visual C++This article was previously published under Q104094 On This PageSUMMARY With a Win32-based console application, you can call the
functions in the Win32 application programming interface (API). MORE INFORMATION Because GRAPHICS.LIB and PGCHART.LIB do not ship with
Visual C++, 32-bit Edition, the API functions can be used for graphical output
or screen manipulation. The following console sample illustrates how to use the API to change the background color of output to the screen. For further examples of console applications included with Visual C++ version 4.0, 5.0, and 6.0, see the CONGUI and CONSOLE sample programs in the \MSDEV\SAMPLES\SDK\WIN32 directory, or online help in versions 5.0 and 6.0. For examples of console applications included with Visual C++ versions 1.0 and 2.x, see the CONGUI, CONSOLE, CONSOLEC, and INHERIT sample programs in the \MSVCNT\SAMPLES directory. Sample CodeAPPLIES TO
| Article Translations
|

Back to the top
