Re: Newbie to VB: to what degree is VB event driven [follow up questions]

Tech-Archive recommends: Speed Up your PC by fixing your registry




"jjoensuu" <j_joensuu@xxxxxxxxx> wrote
thanks all for your responses.

Nice beginning to a follow up message....


But I wanted to ask a couple follow up questions. These are strictly
speaking not VB questions so apologies for that:

A. is it so that (regardless of programming language) the Windows
environment is what provides a way to eliminate loops to wait for user
input?

In a word, yes. For more info see:

Windows UI:
http://msdn2.microsoft.com/en-us/library/aa383743.aspx

Hooks:
http://msdn2.microsoft.com/en-us/library/ms632589.aspx


B. in what kind of situations would a loop be required for waiting for
user input?

If at all possible, looping should be avoided in favor of responding to
messages and/or events. One possible situation that may require looping
is when timing is critical, so that your code can continuiously poll an input
or update a display. But, as you may know, Windows itself is not very
well suited for time critical applications.

LFS


.



Relevant Pages

  • Re: Genuine Advantage Notification - whats it doing every morning?
    ... It's telling Microsoft what hardware and software you've got ... The genuine validation process will collect information about your ... User locale (language setting for displaying Windows) ... User input is often compared ...
    (microsoft.public.windowsxp.general)
  • Windows XP Home SP3 update failed
    ... When I tried to update my Windows XP Home SP2 to SP3, ... 6422.675: User Input: OK ... Service Pack 3 installation did not complete. ...
    (microsoft.public.windowsupdate)
  • Re: A Totally New Software
    ... program that would not only allow user input, ... Changes or disappearance of those sites would render such a program obsolete. ... The half assed interfaces most current products have for graphics ... Windows would you write it for. ...
    (soc.genealogy.computing)
  • Re: Just 12 minutes
    ... | being online using an unprotected, unpatched Windows PC." ... But without any user input, ... | what are they and what is the mechanism by which they infect a PC? ...
    (alt.comp.anti-virus)
  • Just 12 minutes
    ... 50% chance of being infected by an internet worm in just 12 minutes of ... unpatched Windows PC." ... But without any user input, ... what are they and what is the mechanism by which they infect a PC? ...
    (alt.comp.anti-virus)