14.1. The Possibilities
The MS-DOS prompt window is built around a console, and in that form it is immediately recognizable. The console API provides a two-dimensional array of characters that scroll upward when the cursor hits the bottom of the window. The four most common ways to use a console are as follows:
If you want to create your own custom command interpreter to replace the MS-DOS prompt, you should use the console library.
If you want to add console input or output to a normal GUI or MFC program, you do that using consoles. For example, while debugging an MFC program, you might want to stream a set of coordinates out to a console as you are painting lines on a screen so that you can check the coordinates.
If you want to port a full-screen ...
Get Win32 System Services: The Heart of Windows® 98 and Windows® 2000 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.