At 01:58 PM 6/1/2004, you wrote:
I am trying to set an alarm from code that is not in a standard application. The type of the database is not 'appl'. If I use AlmSetAlarm, will it still call up my code event though the type is different? Another approach that I considered taking is creating a MemPtr and setting the owner to the system so that it would not be freed. Could I store the code to be called in the MemPtr, then use AlmSetProcAlarm and point the procedure to the MemPtr? If I compiled that procedure as part of my application's code, could I use sizeof() to determine the size of the function so that I know how much data to write to the MemPtr?

You should be able to use a non-'appl' database, as long as it has the same structure as a standard Palm OS application. For example, a pref panel (type 'panl') can receive an alarm.



-- Ben Combee, DTS technical lead, PalmSource, Inc. Read "Combee on Palm OS" at http://palmos.combee.net/



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

Reply via email to