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/