>Is it possible to write an application that is not loaded as an
application, but
>rather is stored as a database entry on the Palm, then when selected by a
"host"
>application, the "database-based" application runs? When it finishes, it
would
>launch the parent application with a custom launch code and the user would
be
>returned to where they started - sort of.
>
>The problem I'm trying to solve is one of having hundreds of "applets"
available
>to be run on the Palm at one time. These programs are very small, and there
are
>potentially 1000's of them. It would be a shame to burn up 1000 creator ids
for
>these guys, yet I am intrigued by the idea of having each one a totally
self
>contained program.
Since there are 4 billion possible creator ID's, I don't think we're in any
danger of running out of them (of course, that is probably what people said
about Y2K, too). A more acute problem: imagine what the delete application
dialog box, or the Launcher program would look like with 1000 programs
installed.
A loose idea (never tried in practice, at least not by me): Could you store
the apps as databases of some other type and then use DmSetDatabaseInfo to
set the type to 'appl' and the creator to (whatever you want) when you need
to run the app?
If you want all the programs in the same database (1000 databases can be
hard to manage), perhaps you could create an application database "on the
fly" and copy the program there.
// Niklas