I would guess that err is garbage because you don't initialize it and you don't pass 
in the address of err to FileOpen (that last parameter is a pointer to an Err, not an 
Err).  Does this compile?  Or was that a typo?

Kevin

-----Original Message-----
From: Cheok Yan Cheng [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, February 20, 2002 5:42 PM
To: Palm Developer Forum
Subject: Checking For Masked Error Code


I try,

Err err
fileHandle = FileOpen(0, "game0", CreatorId,
CreatorId, fileModeReadOnly, err);

Then, i try to purposely open a file that doesn't
exsit in the system and calling the error checking
code.

// check for error code, but won't work
if(err == fileErrCreateError)
{
} 

// this also won't work? why?
if((err & fileErrCreateError) == fileErrCreateError)
{
}

thank you.

regards
yccheok

p/s how can i reply a specific message thread through
e-mail. any special command for that ? 

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

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