Hi all!
How can I implement a indefinite loop and let the user exit from the loop by 
the pressing of a button?

I tried by calling the function DoEvent() in each cycle of the loop itself, but 
the application doesn't respond to any button press.

How can I do it?

Thank you all!



This is the function I implemented:

///////////////////////////////////////////////////////////////

void DoEvent(void)
 {
 UInt16 error;
 EventType event;

 if (EvtEventAvail ())
  {
  EvtGetEvent(&event, evtWaitForever);

  if (! SysHandleEvent(&event))
   if (! MenuHandleEvent(0, &event, &error))
    if (! AppHandleEvent(&event))
     FrmDispatchEvent(&event);
  }
 }


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

Reply via email to