> I try to change the attribute of file in SD card but fail. Here is my code
:
>
> err = VFSFileOpen(volRefNum, kExpansionKeyPathFilename, vfsModeReadWrite,
> &ref);
> err = VFSFileGetAttributes(ref, &value);
> value = value|vfsFileAttrHidden|vfsFileAttrSystem;
> err = VFSFileSetAttributes(ref, value);
> err = VFSFileClose(ref);
>
> It fails on VFSFileSetAttributes with error 0x0502. Pleaes help.

#define sysErrTimeout           (sysErrorClass | 1)
#define sysErrParamErr          (sysErrorClass | 2)   <-- 0x0502
#define sysErrNoFreeResource    (sysErrorClass | 3)

so, your passing the wrong parameter. question is. which one of the calls is
the error being reported on?

---
Aaron Ardiri                           [EMAIL PROTECTED]
CEO - CTO                                              +46 70 656 1143
Mobile Wizardry                         http://www.mobilewizardry.com/


-- 
For information on using the Palm Developer Forums, or to unsubscribe, please see 
http://www.palmos.com/dev/support/forums/

Reply via email to