Hi all the List,
I've made an application for commercial use where the user can't exit from
it. But I need that the user can only launch the Calc App... This is the
code that return an error...

<<<
DmOpenRef       calcRef;
UInt32  calcRes;
LocalID calcID;

calcRef = DmOpenDatabaseByTypeCreator('appl', 'calc', dmModeReadOnly);
DmCloseDatabase(calcRef);
calcID = DmGetAppInfoID(calcRef);
SysAppLaunch(0, calcID, 0, sysAppLaunchCmdNormalLaunch, NULL, &calcRes);
>>>

This code is called when the user tap the calc button, before that the
keyDownEvent is been take by the SysHandleEvent function...Doing so, when
the user has finished to use the Calc App, the control of the system return
to my Application, without send an appStopEvent to it.
What is wrong?
Thank's.


-- 
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