>I am not sure that this actually works like you think it does... we
>tried this approach several years ago (make PDB, back it up to
>desktop, copy/paste the binary into a resource, then
>DmCreateDBFromImage it) and it didn't work. It WOULD create the DB,
>but not all of the records/resources, etc... I asked palm and they
>said that the DBIM format wasn't the same as the backed-up PDB...
Hmm. I might not know all of the facts in thia area, but I'm surprised to
hear what you say, and what you heard from someone here at Palm.
DmCreateDBFromImage ought to do exactly what you want - take the data which
was in a .pdb file on the desktop and create the appropriate database from
it.
(You'd have problems if the .pdb itself was more than 64k since you
wouldn't be able to fit it into a resource, but that's a different issue.)
In fact, the reason that the routine exists is for precisely your purpose.
That's how the default data for the built-in PIM applications is created,
on hard reset.
-David Fedor
Palm Developer Support