-----BEGIN PGP SIGNED MESSAGE-----
Ender Wiggin wrote:
> How can I create a database that I can include in my app for "initial
> settings"? I've heard the terms "Image Database" and "Resource Database"
> are these involved?
>
> --
> Thanks in advance
> --
> Nikue Harlley
> Veni Vidi Vici
Depends on your dev environment.
For CodeWarrior, create a .r file with the following code:
read 'glob' (1000) "file.pdb";
for pilrc:
DATA 'glob' ID 1000 "file.pdb"
'glob' is your resource type. I don't think it matters what the type is,
as long as you don't conflict
1000 is the resource ID
"file.pdb" is the pdb file you're including.
Then you can thaw the image using something like:
hRez = DmGetResource('glob', 1000);
pRez = MemHandleLock(hRez);
DmCreateDatabaseFromImage(pRez);
MemHandleUnlock(hRez);
If I'm wrong on the resource type thing, please let me know.
- --
Brian Mathis
Direct Edge
http://www.directedge.com
-----BEGIN PGP SIGNATURE-----
Version: PGP 7.0.1
iQEVAwUBOm0Mj7Go2cj8O3o1AQGfIQf8DYX8krXnZxpy2gV5XIifEofgL1pu5CTj
8b/BN/HD1IB+EGPf9a2U5mSlKbUXLOGkLfXAzpDuDa/54Dr7NSNVzba+cj/gXEMn
b46pgPdRY0xsOwAAPQ0KqwSc36C1c34Boj9FcxRBf48au8tV6Fty/kERKMPtiXEn
zR2n859ljON7+4EyjkCKMqs5qz/m3mZhs5BpCT7liBULtrza433Qhk0lfVjU9/Jf
8NJ3/ww2DTiyxpGdLZJjJYyenq3YvU8rsYKR6VhHExARqCWXHjBylL3UlBD5WODh
70lW1DsxuUaSq/cbp/rr7SkNbnzWhGe1RL+65cITeAjSAHnTZcmYoQ==
=ftlI
-----END PGP SIGNATURE-----
--
For information on using the Palm Developer Forums, or to unsubscribe, please see
http://www.palmos.com/dev/tech/support/forums/