Thanks.

That seemed to work for a simple case (array of ints) but didn't work for an
array of structures. The compiler complained:

"Illegal initialization"

when the pragmas where included.

I have concluded that the best way to solve the problem is using a Palm PDB
file. Using a PDB converter, I can store all my data into this file. From
the desktop using an editor, I just create my data and use a Windows PDB
converter to create a Palm compatible PDB file. Then the code uses the Palm
database API to retrieve the data.

http://www.freewarepalm.com/utilities/pdbconverter.shtml

--

Sincerely,

Auterra Support
[EMAIL PROTECTED]
www.auterraweb.com
"Ben Combee" <[EMAIL PROTECTED]> wrote in message
news:78698@palm-dev-forum...
>
>
> "DL" <[EMAIL PROTECTED]> wrote in message
> news:78687@palm-dev-forum...
> >
> > I have a large array of strings like:
> >
> > Dtc dtc[] = {
> >     { "String 1" },
> >     { "String 2" }
> > };
> >
> > A shared library cannot contain global data. How then can I include my
> large
> > table into a shared library? The table is <64k segment.
>
> A shared library can contain read-only data.  If you're using CW, you
> can use the "pcrelconstdata" options to put your data into the code
> section.
>
> See http://www.palmoswerks.com/stories/storyReader$6 and the other
> stories on my site for some insight.
>
>
>
>



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