cardNo = 0 and mode is set to dmModeReadWrite. This logic is used in another
area to create/open my main database and works fine. Color me baffled (or
tired and I'm missing something extremely obvious).
--Alan
> -----Original Message-----
> From: Aaron Ardiri [mailto:[EMAIL PROTECTED]]
> Sent: Monday, June 28, 1999 3:26 PM
> To: [EMAIL PROTECTED]
> Subject: Re: DmOpenDatabase error
>
>
> On Mon, 28 Jun 1999, Alan Johnson wrote:
> > I am creating 2 databases. I call the following pseudocode:
> >
> > dbID = DmFindDatabase()
> > if dbID == 0
> > DmCreateDatabase() <--- this is successful
> > DmFindDatabase() <--- this returns a dbID
> > end if
> > DmOpenDatabase() <--- using the dbID returned above, this
> returns err = 534
> >
> > Decimal 534 should be x216 which according to the headers is
> the database
> > could not be opened because it could not be found. Anyone know
> why it can't
> > be found when it just found it?
>
> check where the "database" is stored..
>
> DmOpenDatabase(UInt cardNo, LocalID dbID, UInt mode)
>
> expects a "cardNo" - which card is the database created on?
>
> use:
>
> DmGetNextDatabaseByTypeCreator
>
> to make sure you have the right card number etc.. i had problems
> with FindDatabase before - then i found this routine.. works
> like a dream..
>
> > Things that make you go hmmmmmmmm.
>
> .... jolt time..
>
> vi /usr/local/m68k-coff/include/PalmOS/System/DataMgr.h
>
> ... :P
>
> az.
> --
> Aaron Ardiri
> Lecturer http://www.hig.se/~ardiri/
> University-College i G�vle mailto:[EMAIL PROTECTED]
> SE 801 76 G�vle SWEDEN
> Tel: +46 26 64 87 38 Fax: +46 26 64 87 88
> Mob: +46 70 352 8192 A/H: +46 26 10 16 11
>
>
>