You need to set the owner to the ptr for the system. The system will then
clean up after the second application quits.
// Create a String buffer
char * str = MemPtrNew(3);
Err err = 0;
//set the owner to the system
MemPtrSetOwner(s, 0);
//Copy the required information
StrCopy(str, "hi\0");
// Launch with the command
AppLaunchWithCommand(CreatorID, nLaunchCode, (void*) str);
-----Original Message-----
From: Marty Fix [mailto:[EMAIL PROTECTED]]
Sent: Friday, April 30, 1999 9:08 AM
To: Palm Developers Forum List
Subject: Passing Data to another app
Hi all,
I have a question that will probably show of my ignorance in Palm
memory. 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.
Marty Fix
[EMAIL PROTECTED]