> You could use a string list resource in a resource database.
> You could even add that resource to your shared library, but
> you would have to make sure that the id used for the
> resource never conflicts with the ids used in any
> application that uses your shared library.

You don't have to worry about ID conflicts if the shared library doesn't
leave its database open between calls, along these lines:

   ... SomeEntryPoint(...)
   {
      <open my DB>
      <use the string list resource>
      <close my DB>
   }

OTOH, you _do_ have to worry about conflicts if you use this (more
efficient) style:

   ... Open(...)
   {
      <open my DB>
   }

   ... SomeEntryPoint(...)
   {
      <use the string list resource>
   }

   ... Close(...)
   {
      <close my DB>
   }

In this case, you should use the reserved range of IDs for shared libraries,
but even that doesn't protect you against conflicts with other shared
libraries.
--
Danny @ PalmSource

-- 
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