I am writing the alarm for my program, I have setup the alarm and get the sound in sysAppLaunchCmdAlarmTriggered.
However, I got problems in sysAppLaunchCmdDisplayAlarm.
Here is my code.
switch (cmd)
{
case sysAppLaunchCmdNormalLaunch:
error = StartApplication();
if (error)
return error; FrmGotoForm(InfoForm);
AppEventLoop();
StopApplication();
break;
case sysAppLaunchCmdAlarmTriggered:
AlarmTriggered ((SysAlarmTriggeredParamType *)cmdPBP);
break;
case sysAppLaunchCmdDisplayAlarm: error = StartApplication();
if (error)
return error; FrmGotoForm(InfoForm);
AppEventLoop();
StopApplication();
break;
default:
break;}
In the sysAppLaunchCmdDisplayAlarm, my program can show up the InfoForm, however, the values of the global variables seems incorrect. Anything wrong in my program? What do I need to do inside the sysAppLaunchCmdDisplayAlarm that I can display the form?
Thanks. Eric
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
