Hi Karen,

>I'm having trouble getting an overlay to automatically load under POSE
>(PalmOS40-efigs-v-full.rom).

If an overlay isn't getting opened automatically by the OS, then it's 
not validating properly. There are several reasons that this could 
happen:

a. The base PRC is being opened with write access for some odd reason.

b. The base PRC has an xprf=0 resource with the 
sysExtPrefsNoOverlayFlag bit set in its flags field.

c. The creator of the overlay PRC doesn't match the creator of the base PRC.

d. The type of the overlay PRC isn't 'ovly'.

e. The name of the overlay PRC isn't equal to <base prc name>_<llCC> 
(e.g. "Memo Pad_frFR").

f. The overlay PRC doesn't contain an 'ovly' resource with ID=1000.

g. The version number of the 'ovly' resource in the overlay PRC isn't valid.

h. The checksums found in the 'ovly' resource don't match the 
checksums generated by the data in the base PRC.

>   I'd like to see if I can load the overlay
>manually using DMOpenDBWithLocale() as described on pg. 366 of the 4.0
>Development Tools Guide. Unfortunately, DMOpenDBWithLocale is not available
>for general use.  Is there a way to manually load an overlay?

You could open the overlay using the regular DmOpenDatabase call; 
this will be a tiny bit slower than DmOpenDatabaseWithLocale, since 
it will try to find the (non-existent) overlay for the overlay, and 
the DmGet1Resource call won't work properly (it will only search the 
overlay, not the overlay + the base), but other than that it should 
be equivalent.

Note, however, that you'd be circumventing the checks that the 
Overlay Mgr is trying to perform for you. So if the reason the 
overlay isn't opening automatically is because the base data has 
changed (and thus the overlay is not longer valid), then you'd be 
asking for trouble.

-- Ken

Ken Krugler
TransPac Software, Inc.
<http://www.transpac.com>
+1 530-470-9200

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