it will cause no grief, and saves some space. alerts 1002x and 1003x
are built into the OS since PalmOS 3.x

On 6/20/08, Roger Stringer <[EMAIL PROTECTED]> wrote:
> At 04:15 AM 6/20/2008, you wrote:
>
> > Subject: VFSFileOpen on root directory causes returns vfsErrNotADirectory
> on enumerate?
> > From: Ryan Rix <[EMAIL PROTECTED]>
> > Date: Thu, 19 Jun 2008 10:50:26 -0700
> > X-Message-Number: 3
> >
> > Hi all,
> > This is probably something really stupid that I am missing, but after
> > successfully opening the root of a VFS directory I call
> > VFSDirEntryEnumerate().
> > This returns 0x2a11 or vfsErrNotADirectory.
> >
> >    err= VFSFileOpen( refNum, dir, vfsModeRead, &fref );
> >    if( err != errNone ) // This evaluates to true.
> >    {
> >        StrPrintF( buffer1, "%x", err );
> >        FrmCustomAlert( 10021, buffer1, "", "" );
> >    }
> >
>
>  Slightly off topic, but why are you using an alert ID above 9999?  Normally
> that will cause you grief when you deploy your application!
>  Also hardcoding a resource ID isn't a good programming practise!
>
>
>  Roger Stringer
>  Marietta Systems, Inc. (www.rf-tp.com)
>
>
>  --
>  For information on using the ACCESS Developer Forums, or to unsubscribe,
> please see http://www.access-company.com/developers/forums/
>


-- 
----
Best Regards,
Dmitry Grinberg
(847) 226 9295

-- 
For information on using the ACCESS Developer Forums, or to unsubscribe, please 
see http://www.access-company.com/developers/forums/

Reply via email to