[futurebasic] Unclear on the wdrefnum concept

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : June 2002 : Group Archive : Group : All Groups

From: "Steven J. Stratford" <sstrat@...>
Date: Wed, 26 Jun 2002 22:04:23 -0500
This function is off the release 6 CD, out of the file called Toolbox file
handling:

DIM AS INT ioErr
LOCAL FN NewFile (pb AS PTR, fNamePtr AS PTR TO STR31, Vol AS INT, Perm AS
INT)

ioErr = FN OpenFile(pb, fNamePtr, Vol, Perm)

LONG IF ioErr = _FnfErr
ioErr   = FN PBCreateSync(pb)
LONG IF ioErr = _noErr
ioErr = FN PBOpenSync(pb)
END IF
XELSE
LONG IF ioErr = _noErr
& pb +_ioMisc, 0
ioErr = FN PBSetEOFSync(pb)'Clear Out File
END IF
END IF

END FN = ioErr

Has it been upgraded for OS X? The reason I'm asking is because I use
earlier versions of those functions in that file in my CGIs, and I want to
start making them OS X compliant.

--Steve

Steven J. Stratford, InterNetyx.com
http://www.internetyx.com
Web Site hosting services
CGI shareware for Mac/WebStar servers
Custom CGI programming