[futurebasic] Re: [FB] Multiple Resource Problem

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

From: "Pete" <furbies@...>
Date: Sun, 02 May 1999 11:19:28 +1000
> I have been using the following to swap between resource files
> 
>   oldres = FN CURRESFILE
>   RFnum% = FN HOPENRESFILE(SYSTEM(_aplVol), 0, res$, _fsRdPerm)
>   LONG IF RFnum% <> -1
>     CALL USERESFILE(RFnum%)
>     lh& = FN GETRESOURCE(_"PICT",chelp)
>     LONG IF lh&
>     .....
>       CALL RELEASERESOURCE(lh&)
>     END IF
>     CALL USERESFILE(oldres)
>   END IF
>
>
> In one part of the program after doing a print routine the program
> starts putting data resources as opposed to program resources on the
> screen. Is there a call I can make to return to the BUILT resource when
> the program looses the plot?
>
> Martin

I think you need to make sure that you dump from memory any existing copy of
resiurces from the rez file you no longer want to access and then you need
to load in to memory the resources you do need ?

pete...