> From: V...i...K...a...S > > How do I programatically close an application. > Can I post "appStopEvent".. > Thanx in advance.
--- Syed Najeebullah Hussaini wrote: > In the button click event or any event just assign the appStopEvent > to the event occuring... like eventP->eType = appStopEvent; That is not a good idea. Changing one event into another event will have bad side effects if you don't know what you are doing. If you really must force your app to exit (rarely is that necessary; Palm apps should not have an exit button) then use EvtAddEventToQueue() to post a new event like so: EventType myEvent; MemSet(&myEvent, sizeof(EventType), 0); myEvent.eType = appStopEvent; EvtAddEventToQueue(&myEvent); __________________________________________________ Do You Yahoo!? Yahoo! Movies - coverage of the 74th Academy Awards� http://movies.yahoo.com/ -- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
