Hi Jonas,

As per suggestions i wrote the app like this.
if(cmd == sysAppLaunchCmdNormalLaunch)
{
error = AppStart();
                if (error) 
                        return error;
                        
                FrmGotoForm(MainForm);
                AppEventLoop();
                AppStop();
        }
        else if (cmd == sysAppLaunchCmdSyncNotify)
        {
                SyncNotification();
        }
        else if(cmd == sysAppLaunchCmdAlarmTriggered)
        {
                DeleteDB();
                //AlarmTriggered((SysAlarmTriggeredParamType
*)cmdPBP);
        }


 --- Henk Jonas <[EMAIL PROTECTED]> wrote: > ehm,
set an alarm. It's not that difficult. Your
> program gets called 
> after hotsync. Your program sets the alarm. Your
> program will be called 
> when the time for this alarm is reached and can
> delete the database. 
> What didn't you understand here?
> 
> Henk
> 
> Rahul Shukla wrote:
> > Hi,
> > 
> > I dont have to delete the database just after
> hotsync,
> > coz cmdsyncnotify was serving that purpose.
> > But after hotsync , suppose i write in one of db
> the
> > time of hotsync and also after how many hours to
> > delete all the db.
> > Now what shall i use to detect which shall remain
> in
> > continuous polling mode calculating the time
> > difference and if acheived delete all the DBs.
> > 
> > Regards,
> > 
> >  --- Henk Jonas <[EMAIL PROTECTED]> wrote: >
> Have
> > your palm application get notified won hotsync
> > 
> >>by the appropriate 
> >>launchcode and set an alarm for your application.
> >>When the alarm is 
> >>triggered, go and delete the database.
> >>
> >>Henk
> >>
> >>Rahul Shukla wrote:
> >> ...
> 
> 
> -- 
>
-------------------------------------------------------------------------
> [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/ 

________________________________________________________________________
Missed your favourite TV serial last night? Try the new, Yahoo! TV.
       visit http://in.tv.yahoo.com

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

Reply via email to