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/