Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- FiveWin 1.9.2 - January 97 - <b>what are event-driven applications ?</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 What are event-driven applications ?
--------------------------------------------------------------------------------

   In a DOS application there is always a main loop where the application
   checks for the user input, normally a keystroke or mouse activity.
   That is the fundamental difference between DOS and Windows applications.
   Windows maintains one main loop and reports to the application all user
   activity.
   That is the fundamental difference between DOS and Windows applications.

   Every time the user presses a key on the keyboard or does something with
   the mouse, Windows detects it and sends the application a message informing
   that an event has occurred.

   Just remember, in DOS YOU have the main loop control, in Windows
   you don't have it, and Windows will report to you, sending you messages
   with information about what is happening.

   In an event-driven application, we define different actions to be
   performed on a certain events. These actions are like 'call-backs'
   where program execution will jump to when a certain event is
   being processed.


Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson