"Steve Branin" <[EMAIL PROTECTED]> wrote in message
news:9593@palm-dev-forum...
> Is it possible to include GUI resources in a shared library?
Good question! In a library function, you can open a resource database, but
you have to close it again before you return. Typically, you open your own
database. You can then use forms, etc. So far so good.
The problem is that you might want to keep the resource database open across
several functions. For example, you could open your resource database in
your library Open function and close it in your library Close function. This
could be much more efficient, but it won't work because there are no
resource IDs available for your use. IDs less than 10000 are for
applications. If you use IDs in this range, your resources could override
the current application's resources. IDs greater than 10000 are "reserved
for system use", so you can't use these or you might conflict with Palm OS.
We're considering reserving a range of resource IDs for shared libraries. If
you have an opinion on whether we should do this, and if so, how, I'd like
to hear from you.
--
Danny Epstein
OS Engineer, Palm Inc.
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palm.com/devzone/mailinglists.html