"Eugene Mayevski" <[EMAIL PROTECTED]> wrote in message
news:45728@palm-dev-forum...
> How can I display a custom message from shared library (1 OK button would
be
> fine)? Will FrmAlert load the alert resource from a shared library
> successfully?

You'll have to open your shared library's database, so that it'll be in the
list of open databases that are searched by DmGetResource. You can open and
close your database in each shared library routine that needs to access
resources. Or you open the database in your Open() function and close it in
your Close() function. The latter approach requires apps that use your
library to call Open() and Close(). It also introduces some resource ID
conflict issues. However, it's much more efficient.

Just because a shared library is loaded (ie. in the system's table of loaded
libraries), doesn't mean that its database is open. The code resource is
kept locked as long as the library is loaded, but the database is protected,
so that it can be closed even though one of its resources is locked. That's
probably more detail than you wanted. :)
--
Danny Epstein
OS Engineer, Palm Inc.



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

Reply via email to