Re: Newbie to VB: to what degree is VB event driven
- From: "Steve Gerrard" <mynamehere@xxxxxxxxxxx>
- Date: Sat, 8 Sep 2007 12:27:34 -0700
"dpb" <none@xxxxxxx> wrote in message news:fbunes$2bb$1@xxxxxxxxxxx
Bob Butler wrote:
"jjoensuu" <j_joensuu@xxxxxxxxx> wrote in message...
news:1189267210.888569.168870@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hi folks
I was reading a book about programming C++ and this book had an
example code of creating a user menu with the help of a "switch"
statement inside a 'forever loop' (a "for" loop that only exists if
the user chooses a specific option from the menu).
Sounds odd but perhaps there's an underlying reason
Like a standalone app in a nonwindowed environment, maybe??? :)
--
Actually, that sounds like the old days, when you got to write your own windows
procedure. They were often constructed as a loop with a switch based on an
incoming message. The loop included calls to retrieve messages, which was the
point where the program effectively yielded to the OS until a message was
available. In fact most Windows programs, including VB apps, have something like
it under the hood somewhere, with some of the messages mapped to events that
trigger our event handler code.
.
- Follow-Ups:
- References:
- Newbie to VB: to what degree is VB event driven
- From: jjoensuu
- Re: Newbie to VB: to what degree is VB event driven
- From: Bob Butler
- Re: Newbie to VB: to what degree is VB event driven
- From: dpb
- Newbie to VB: to what degree is VB event driven
- Prev by Date: Re: One VB6 project loads with print-mode in landscape
- Next by Date: RE: Determine if Virtual PC is running
- Previous by thread: Re: Newbie to VB: to what degree is VB event driven
- Next by thread: Re: Newbie to VB: to what degree is VB event driven
- Index(es):
Relevant Pages
|