>From what I have gathered from mr. Smith's postings he is developing a
shareware program. I suspect that he wants this program to commit suicide if
the user has not payed him properly.

This might constitute a valid exclusion from the Zen, although I prefer the
nagging approach rather than suicide in a shareware app, but that is me.

Karl-Koenig Koenigsson

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]]On Behalf Of Bradly
> J. Barton
> Sent: Friday, September 07, 2001 7:38 PM
> To: Palm Developer Forum
> Subject: Re: Creating a Event to shutdown app
>
>
> > Can someone please tell me how to make a event that
> > will shutdown my app!
>
> Sigh.. if not the #1 asked question, it is definitely in the top 5.. Does
> the touching one of the hard buttons not work for you? Or the applications
> button? The calculator?
>
> <Zen>There is really no need for an exit control from your application,
> those buttons are used for changing to another and your application stops
> when they are run</Zen>
>
> However, there may be situations where you want to exit from an error, so
> just put this function somewhere, cause you may want it again:
>
> void KillApplication()
> {
>  EventType newEvent;
>  MemSet(&newEvent, sizeof(EventType), 0);
>  newEvent.eType = appStopEvent;
>  EvtAddEventToQueue(&newEvent);
> }
>
>
>
> --
> For information on using the Palm Developer Forums, or to
> unsubscribe, please see http://www.palmos.com/dev/tech/support/forums/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/tech/support/forums/

Reply via email to