> I have two applications that I have developed and want to pass 
> some data (a date and two strings) from one to the other.  I am using
> SysUIAppSwitch to launch the second program and creating my own launch
> code.  This works fine but I can not figure out how to make the parameter
> block point to my data.  First, do I have to create my own launch code to
> do this? and second, how can I have a memory location that will keep the
> data when the second application is launched.   Thank you for any help
> you can give me.
>

Just pass an allocated memory pointer:

Ptr data = MemPtrNew(100);    // use the size you need
// fill in data with whatever info you want
SysUIAppSwitch(cardNo, dbID, launchCmd, data);

The system will automatically set the owner ID of data to 0 (so that it
isn't deallocated when application 1 quits).  I assume it will deallocate
the data when application 2 quits.


Neil Rhodes

Reply via email to