Hitesh Patel wrote:
>
> Hi,
>
> I am relatively new programmer for the Palm OS and I am writing an application
> in which I require that the first time the user runs my application there
> should be an existing database for the application which is populated with
> appropriate data.
>
> I understand that I can create a database through my application, but that
> would not serve my purpose. So what I think is that I can make a database
> file(.pdb), populate it with data and then install it along with my
> application on the palm device.
>
> I would like to know if this would serve my purpose and secondly if yes, then
> how do I make the .pdb file?
>
> Thanks.
>
> Hitesh
>
> ____________________________________________________________________
> Get free email and a permanent address at http://www.netaddress.com/?N=1
Take a look at DmCreateDatabaseFromImage(). You can use it to create a
database from a premade image of it. This would reduce the number of
things your users would need to perform.
Or you can create the database in your AppStart() function, and init it
to whatever values you want.
In either case, you will need to programmatically create the database.
If you choose DmCreateDatabaseFromImage(), you will need to write
another small program on the Palm device to initially create that image.
--
Brian Mathis
Direct Edge
http://www.directedge.com