Ben Combee a �crit :

> At 08:48 AM 11/29/2004, you wrote:
> >[EMAIL PROTECTED] a �crit :
> >
> > > One way, it is to create different applications with the same creator
> > id but different types, and then call these applications from your "main"
> > application. (SysUIAppSwitch or SysAppLaunch). And if the application is
> > not found, just show a message explaining why...
> >
> >Can I pass data pointers to the application launched with SysAppLaunch?
> >The API Ref only mentions "cmdPBP: Launch code parameter block". Which
> >launch code gets sent to the launched application? 
> >sysAppLaunchCmdNormalLauch?
>
> The block of data that you pass to a SysUIAppSwitch application needs to be
> self-contained -- it shouldn't have any pointers to outside data, since any
> pointers would probably be invalidated by the application switch, since
> that frees most of the dynamic heap data and the program stack.
>
> For SysAppLaunch, the block can contain pointers to data from your current
> application.

If I understand correctly, launching my plugin with SysAppLaunch, it can have 
access to all global variables and open DB
references of the calling PRC, provided I set up a proper exchange block to 
pass pointers. I assume it also shares the same
dynamic heap. Now, that sounds like a real plugin to me!


--
Luc Le Blanc


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

Reply via email to