In palm-dev-forum, somebody at Jaxo, Inc. wrote:
>I was asking b/c I want to make scripts written for our interpreter
>into PRCs so they can be launched from an icon.  The PRC
>simply contains a call to SysUISwitch to the interpreter app
>and passes it the script by value/reference.

HotPaw Basic does this by including a nub prc application as a flat data
resource.  See previous messages on this list for how include data as a
resource.

I lock the data resource, use DmCreateDatabaseFromImage() to create
a new prc in memory; modify resources inside the new prc nub with
the script value/index/reference to be used by HotPaw Basic after the
nub UISwitch; modify the nub name, creator, etc.

I strongly recommend that you check all error and return values when
doing something like the above.

I don't call sysAppLaunchCmdSyncNotify() because my launcher nub
application doesn't do anything with that launch command.

I've been wondering whether I should create an installer application
for one of my applications (and its libraries) which already uses the
above technique.  In that case I would have an application inside a
resource inside an application inside a resource inside a application.

Ron Nicholson
HotPaw
   <http://www.hotpaw.com/rhn/hotpaw >


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

Reply via email to