[futurebasic] Getting FSRef for file

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : April 2011 : Group Archive : Group : All Groups

From: Warren Lanford <wdllien@...>
Date: Mon, 25 Apr 2011 14:06:04 -0400
Am trying to get FSRef for a file after using :

  newfilename$ = FILES$(_FSSpecSave,"Save Image As…",gFileNam$,fileSpec)

I found and am trying to use the following to get info about the file  
before attempting to write to it.

err = fn FD_PathGetFSRef( fn CFSTR( newfilename$ ), 0, @fileRef)
with fileRef dimensioned  as  ' dim as FSRef fileRef '

All I get is error -43 for ' file not found '

Am I using the wrong thing to get the FSRef for a file or am I setting  
it up wrong ?

I can find nothing else that looks like it'll do what I'm trying to do.

Warren