Hello Palm Developer Forum!

I am newcomer but I hope anyone can answer my question.
I want do develop I little CW application which should start
automatically a satforms program after a HotSync.
I have written the following code but it doesn't work:

#include <Pilot.h>

static void SyncNotification(void);

//Launching my SF Prog
static void SyncNotification (void)
{
       LocalID theDBID;
       UInt theCardNo;
       DmSearchStateType theSearchState;

       DmGetNextDatabaseByTypeCreator(true, &theSearchState,sysFileTApplication, 
'SYN3', true, &theCardNo, &theDBID);

       SysUIAppSwitch(theCardNo, theDBID, sysAppLaunchCmdNormalLaunch, 0 );
} 

DWord PilotMain(Word cmd, Ptr cmdPBP, Word launchFlags)
{

        if (cmd ==  sysAppLaunchCmdSyncNotify)
                {

                SyncNotification();
                }               
        
        return(0);
}

My application does not get the sysAppLaunchCmdSyncNotify event
because it has no conduit.
Is there any other launch code I can use? Is there a difference
between OS 3.0 and OS 3.1?

Thank you for your help
Regards
Peter



-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palm.com/devzone/mailinglists.html

Reply via email to