Hello Eric,
Thanks for the response. We have tried this and it still does not work. We
are even displaying the contents of the buffer into a message box, and it
displays the correct selection. This is what is most frustrating. The
program seems to be extracting the correct name into a CharPtr but
DmFindDatabase does not seem to work????
Alex
----- Original Message -----
From: "Eric Oliver" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, December 07, 1999 2:46 PM
Subject: RE: Database problems????
>
> You didn't mention that you tried this, so I'll suggest it. Create a
buffer
> on the stack and copy the list selection into it and see what happens. If
it
> works, you'll know the problem is with your list selection buffer and
you'll
> have a fix. PseudoCode
>
> Err OpenDB( CharPtr file )
> {
> // file is the pointer from the list selection
> Char buf[ maxDBNameSize ]; // I know that's not the right define
> LocalID dmId;
> Err err = 0;
>
> // If this doesn't work, you've got a problem with your pointer
> // from the list
> StrCopy( buf, file );
>
> dmID = DmFindDatabase( 0, buf );
>
> if ( !dmId )
> return DmGetLastError();
>
> // Open the database
>
> return err;
> }
>
> BTW, a Grep for 519 in all PalmOS header files didn't turn up anything.
>
> Eric
>
> -----Original Message-----
> From: Palm Dev Forum [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, December 07, 1999 11:47 AM
> To: Palm Developers Forum List
> Subject: Database problems????
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>