Thanks a lot for a discussion even if it does discuss another topics.
Nevertheless I found no answer for my question.
It is very funny, since Palm team certainly does know how to make it.
Certainly if the code of PilotMain.c was written by themselves. Reverse
engineering or call it as you want shows that the ANSWER is to use word
0x000E for launch flag instead of
sysAppLaunchFlagNewStack+sysAppLaunchFlagNewGlobals. Please have a look
for flag's bits by yourself.
Regards,
Constantine
> Hi,
>
> Could anybody help me and say how can I CALL (not switch to) an
> application from my code with a command CmdNormalLaunch? I need to
make
> a call and then again have control of Palm running.
>
> I used few ways varying with launch flags. Best result (no error and
> sucessful launch) was only by code below.
>
> -------------------------
> local dbID.l
> local flag.w
> local cmd.w
> local result.l
>
> move.l correct_value_for_appl, dbID(a6)
> move.w (sysAppLaunchFlagNewStack+sysAppLaunchFlagNewGlobals),flag(a6)
> move.w sysAppLaunchCmdNormalLaunch,cmd(a6)
> systrap
> SysAppLaunch(#0.w,dbID.l,flag(a6).w,cmd(a6).w,#0.l,&result(a6).l)
> ....here I am again
______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com