Lesson 3: Windows Interaction within an Application

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

  1. Click the Windows 95 Start button and then click Run .
  2. 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.

click to view at full size.

Figure 12.9 Comparison of a Windowing and a Console application


Microsoft Windows Architecture Training
Microsoft Windows Architecture for Developers Training Kit
ISBN: B00007FY9D
EAN: N/A
Year: 1998
Pages: 324

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net