I've tried that one, but It still isn't working.

Even tried to call Pilotmain( .. ) from Pilotmain( .. ) with command
"sysAppLaunchCmdNormalLaunch" after I received a
"sysAppLaunchCmdSyncNotify". This doesn't work either.

Have you got any other ideas ?
Thanks in advance.

On Thu, 15 Mar 2001 10:30:23 -0600, "Jeremy Neal Kelly"
<[EMAIL PROTECTED]> wrote:

>
>Again, I'm kind of new to this myself, but I think your PilotMain code
>should look more like this:
>
>  if(cmd == sysAppLaunchCmdSyncNotify)
>    AppLaunchWithCommand('creatorID', sysAppLaunchCmdNormalLaunch, NULL);
>
>The instance of your application that was started by HotSync need do no more
>than start itself with the 'normal' launch code. That second instance -- the
>'normal' instance -- will then initialize itself and show the form, etc. I
>haven't done this myself, but it seems sound.
>
>
>Good luck,
>
>Jeremy Neal Kelly
>------------------------------------
>"Jeroen Jonkman" <[EMAIL PROTECTED]> wrote in message
>news:42388@palm-dev-forum...
>>
>> Thanks for your advice,
>> I tried to call the application whith the command
>> AppLaunchWithCommand('creatorID', sysAppLaunchCmdNormalLaunch, NULL);
>> in PilotMain after PilotMain received a sysAppLaunchCmdSyncNotify.
>>
>> code:
>> ( in PilotMain )
>> if(cmd == sysAppLaunchCmdSyncNotify)
>> {
>> StartApplication();
>> FrmPopupForm(MainForm);
>> FrmSetActiveForm(FrmGetFormPtr(1100));
>> FrmSetEventHandler(FrmGetFormPtr(1100), MainFormHandleEvent);
>> AppLaunchWithCommand('creatorID', sysAppLaunchCmdNormalLaunch,
>> NULL);
>>  }
>> ( where creatorID is my applications id )
>>
>> But now it looks like he' s in some kind of loop. He keeps syncing all
>> the time.
>>
>> How to avoid this ?
>> Thanks in advance.
>
>
>
>
>
>


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