Re: Newbie to VB: to what degree is VB event driven [follow up questions]
- From: "Larry Serflaten" <serflaten@xxxxxxxxxxxxxx>
- Date: Sat, 8 Sep 2007 22:17:47 -0500
"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
.
- References:
- Newbie to VB: to what degree is VB event driven
- From: jjoensuu
- Re: Newbie to VB: to what degree is VB event driven [follow up questions]
- From: jjoensuu
- Newbie to VB: to what degree is VB event driven
- Prev by Date: Re: THANKS! Re: MSForms 2 Obj Lib not "sticking"
- Next by Date: Re: THANKS! Re: MSForms 2 Obj Lib not "sticking"
- Previous by thread: Re: Newbie to VB: to what degree is VB event driven [follow up questions]
- Next by thread: Re: Newbie to VB: to what degree is VB event driven [follow up questions]
- Index(es):
Relevant Pages
|