Ken,

Thanks for the clarification.  I thought that the XPREF resource was needed
to make the application "overlay-able".

Kevin

-----Original Message-----
From: Ken Krugler [mailto:[EMAIL PROTECTED]]
Sent: Friday, January 04, 2002 7:27 AM
To: Palm Developer Forum
Subject: Re: Basic Overlay question(s)


>I've tried without luck to get overlays to work.  What am I doing wrong?
>
>Using CW7, trying to create a language=fr, countrr=FR overlay
>
>1.  Create basic app.prc with original  .rsrc
>2.  Take copy of .rsrc ( app.rsrc, resource.frk\app.rsrc) edit, save,
>generate header.
>3.  Change output type in project from 'appl' to 'ovly'.
>4.  Recompile, link creating new app.prc with new resources bound in.
>5.  run prc2ovl to create overlay:      prc2ovl   app.prc -locale frFR -o
>app_frFR.prc

As you noted, you need to use PRC2OVL on your original English app, 
then edit the resulting PRC using a recent version of Constructor. 
I'll check with the documentation group about how to make this more 
clear.

>6.  Load both original app.prc and app_frFR.prc onto frFR configured Palm
>4.1 EFIGS ROM Emulator
>
>The application does not display the resources from the overlay, but
instead
>the resources from the original .prc.
>
>I've verified using rsrcedit that the app_frFR.prc is in fact an ovly type
>and the creator IDs match and that the overlay does contain the edited
>resources.
>
>Are there any size limits to overlays? -  the one I've generated is 75K.

No size limits beyond your available memory and the existing 64K 
limit for each resource chunk.

And Kevin wrote:
>Your application's resources must also have an overlay preference.

Actually the overlay PRC needs to contain an 'ovly' resource.

>On the
>main "page" of your application's resources, there is a checkbox near the
>bottom "generate xprf resource".  Check that.  Now your application
>indicates that it supports overlays and the underlying OS database code
will
>load overlays for your application when it finds an overlay matching the OS
>language/country settings.

What you're referring to here (the xpref resource) is used to disable
overlays.

And finally:
>I got it working and posted my finding in another post.   From the
>documentation the xprf resource is only needed if you want to supress
>overlays.  Why you would want to do this is beyond me, because if you've
>gone through the trouble of creating an overlay, wouldn't you want to use
it
>when possible?   Although I suppose this could prevent someone from
creating
>an overlay from your base .prc. and using it.

Right. Some companies sell localized versions of their products 
(often for more money than the English version), and thus are not 
excited about the OS making it too easy for a random 3rd party to 
distribute localization overlays as a way of gray-marketing their 
products.

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

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