>1. You didn't check to make sure fileHandle isn't 0
>before you passed
>it to FileError().
>
>2. "In some cases, on some platforms, FileOpen
returns >a non-zero value
>when it has failed to open a file; thus, it is always
>a good idea to
>check the errP parameter value to determine if an
>error has occurred."
>-- But you didn't pass in anything for the errP
>parameter so you can't
>check it!

how can i check the value of err?
if(err != fileErrCreateError) // BUT DOES THIS WORK?
{
   if(FileError(fileHandle) == 0)   // check for
further error
   {
      // everthing ok!
   }
}


__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com

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