Sorry the first line should read:
>  // Open the Palm Datebook database.
>  gDateBookDB = DmOpenDatabaseByTypeCreator (dbDataType, sysFileCDatebook,
> dmModeReadWrite | dmModeShowSecret);

"Jeremy Roever" <[EMAIL PROTECTED]> wrote in message
news:29459@palm-dev-forum...
>
> I don't think I am, but here's the code:
>
>  // Open the Palm Datebook database.
>  gDateBookDB = DmOpenDatabaseByTypeCreator (dbDataType, sysFileCDatebook,
> dmReadWrite | dmModeShowSecret);
>
>  err = DmGetLastErr();
>
> When I run this through debug, I receive the error (516).  Now, if I
modify
> the first line like so:
> .
>  gDateBookDB = DmOpenDatabaseByTypeCreator (dbDataType, sysFileCDatebook,
> dmModeReadOnly | dmModeShowSecret);
>
> The database opens fine and I receive no error.  This is the first time I
> reference the Datebook in any fashion.  Any help or notification of error
on
> my part would be appreciated.
>
>
> "Richard M. Hartman" <[EMAIL PROTECTED]> wrote in message
> news:29450@palm-dev-forum...
> >
> > You aren't opening the Datebook -application- by
> > misteak, are you?
> >
> > Perhaps you could post your code and maybe somebody
> > could spot the problem.
> >
> > --
> > -Richard M. Hartman
> > [EMAIL PROTECTED]
> >
> > 186,000 mi/sec: not just a good idea, it's the LAW!
> >
> >
> > Jeremy Roever wrote in message <29415@palm-dev-forum>...
> > >
> > >I am trying to create an appointment in the Palm built-in Datebook
> > >application via my application.  However, when I attempt to open the
> > >database, it appears it can only be opened in ReadOnly mode.  (error
code
> > >516 when attempting to do otherwise).  How do you go about opening the
> > >database and then writing an appointment in the Datebook DB via another
> > >application?  What am I doing wrong?  Thanks
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> > >
> >
> >
> >
> >
>
>
>
>



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