Rahul Shukla wrote:
Err error = DmGetNextDatabaseByTypeCreator(true,&state,0,myCreator,true,0,&dbID);
Why do you use 0 for the TypeID? You want to set the alarm to your application -> sysFileTApplication.
And you will get a cardNo, it's a nice programming style to receive this number (even if ti will 0 for almost every case).
Imho, you don't have to clear the pending alarm, just overwrite it with the new alarm. Have you checked the error codes and do you get the right time from the last AlmGetAlarm?
Henk
oldalarmTime = AlmGetAlarm(0, dbID, &refP); // Clear the pending alarm AlmSetAlarm(0, dbID, 0, 0, true); alarmTime = TimDateTimeToSeconds(dateTimeP); alarmTime+=60; // Set the new alarm AlmSetAlarm (0, dbID, 0, alarmTime, true); NewalarmTime = AlmGetAlarm(0, dbID, &refP); }
-- ------------------------------------------------------------------------- [EMAIL PROTECTED] www.metaviewsoft.de
<A HREF="http://www.handango.com/PlatformTopSoftware.jsp?authorId=95946"> <IMG SRC="http://user.cs.tu-berlin.de/~jonash/werbung_palmos.jpg"></A> -------------------------------------------------------------------------
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
