Console Applications
Console applications run in a command window. These applications can be started using the Windows
Run command or from a command line. A console application runs within a window, but does not leverage the graphical capabilities of the Windows operating system. A DOS application running in Windows 95 is an example of console application.
* To run the PING application
- Click the Windows 95 Start button and then click Run .
- From the Run dialog, type the following.
PING 127.0.0.1
This will run the Windows 95 Ping.exe application.
When building a console application, the custom controls and general graphical capabilities found in Windowing applications are not supported. Using Visual C++ you can create and interact with console windows using standard I/O functions, such as
printf() and
scanf() . The Windows operating system does provide built-in drag-and-drop support, which allows a form of data sharing between a console application and a Windowing application.
Figure 12.9 Comparison of a Windowing and a Console application