[futurebasic] Porting to Carbon question

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : March 2006 : Group Archive : Group : All Groups

From: Joe Lertola <joefb@...>
Date: Fri, 10 Mar 2006 22:59:45 -0500
Hi all,

It has been several years since I have done any serious programming. 
The coming demise of the classic environment has prompted me to start 
updating several programs I have written. I am getting an error on this 
function that I can seem to find an answer to.

CLEAR LOCAL MODE
DIM PBlk;128
LOCAL FN KillFile(FileName&,Vol%)
'tron break
& @PBlk +_ioNamePtr,FileName&
% @PBlk +_ioVRefNum,Vol%
ioErr=FN DELETE(@PBlk)
END FN = ioErr

The error message is that the function FN DELETE must be defined before 
using.

I got this function from the FutureBasic examples files and it has 
worked well for many years in the classic version of the program. Can 
anyone offer a suggestion on how to get this function to work under 
Carbon or offer an alternative way to delete a file?

Thanks for any help,

-Joe Lertola