[futurebasic] Re: Creating resources from scratch

Message: < previous - next > : Reply : Subscribe : Cleanse
Home   : May 1998 : Group Archive : Group : All Groups

From: tatewake@... (TJ Grant)
Date: Sat, 30 May 1998 13:53:16 -0500
> (I'm curious to know exactly what number you _were_
>passing in there, since you apparently were not actually creating or
>opening a resource file).

 RFnum% = FN OPENRFPERM(myfname$,myvref%,_fsWrPerm)

I took it directly from my other program that did Resource fork reading...
(only I changed the _fsRdPerm to _fsWrPerm)
I also wasn't checking for RFnum% == -1; which I'm doing now.

>Hope this helps.

Yep, it sure did the trick... :-)
No crashes, no corruption, and it works like a charm.



~ An FB revolution? I am there! ~

-- TJ Grant (tatewake@...)
Inspired Software. http://inspired.netstreet.net/
Macintosh, Dos, Windows, and BeOS software solutions.
Phone: 407-728-7563
....................................
.MacSloMo: 6502 emulation in FB!   .
.http://inspired.netstreet.net/POC/.
....................................