[futurebasic] Re: [FB] CFIndexRead using FSRef

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : January 2008 : Group Archive : Group : All Groups

From: Alain Pastor <apastor@...>
Date: Fri, 25 Jan 2008 20:51:45 +0100
Steve a crit :
> Bernie,
> 
> What do I replace in CFIndexRead to read the XML data using a FSRef 
> instead of a FSSpec ?
> 
> I created fn CFReadXML shown below and it fails where marked in red.
> 
> 
> #if def _FBtoC
> local mode
> local fn CFReadXML( indexID as CFIndex, sRef as ^FSRef )
> '~'1
> dim as CFMutableArrayRef     array
> dim as CFDataRef           @ dataRef
> dim as CFURLRef              url
> dim as CFIndex count
>  
> array = fn CFIndexGetArray_priv( indexID )
> long if ( array == 0 )
> url = fn CFURLCreateFromFSRef( 0, sRef )
>  
Not sure, but the above line should read:

url = fn CFURLCreateFromFSRef( 0, #sRef )

No?

Alain