Henk Jonas wrote:
If Christiano Weirich use the wrong type declaration
&file instead of fileP. You have to provide space for the FilePointer.
for VFSFileOpen() (4th parameter FileRef; 'call by value' instead of 'call by reference'), he will obtain an error at compile time.
But he compile and get a 'sysErrParamErr' at runtime.
Without seeing all additional parameters (and declarations), i guess volRefNum is wrong.
Please use ONLY volRefNum numbers recieved within the VFSVolumeEnumerate() os call
-- 8< -- example code ------- 8< --- start
Err err; UInt32 volIterator; UInt16 volRefNum; FileRef fileRef;
fileRef = vfsInvalidFileRef;
volIterator = vfsIteratorStart;
error = VFSVolumeEnumerate(&volRefNum, &volIterator);
if (error==errNone)
{
error = VFSFileOpen(volRefNum, pathName, vfsModeRead, &fileRef);
}-- 8< -- example code ------- 8< --- end
Use also only the full path to a file, e.g. /PALM/Launcher/prfbkp.txt
kindly regards, -- * * * * * * * * * * * * * * * * * * * * * * * * * * * * Ralf Dietrich www: http://www.envicon.com envi.con KG mail:[EMAIL PROTECTED] Emser Platz 2 Tel: +4930-34902670 10719 Berlin/Germany Fax: +4930-34902671
-- For information on using the Palm Developer Forums, or to unsubscribe, please see http://www.palmos.com/dev/support/forums/
