[futurebasic] Re: [FB] Help with RESOURCES

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

From: Rick Brown <rbrown@...>
Date: Thu, 31 Dec 1998 11:24:01 -0600
Steve wrote:
> I fairly new new to FutureBASIC II and I have a question about 
> resources.  Is there a way to use multiple resources from ResEdit using 
> the RESOURCES command?  I have hit the maximum size of the resource and 
> I still need to include more things, can anyone help?

A resource file can hold about 16 MB of resource data, and about 2190
(?) individual resources.  I assume you're saying that the resource file
that's currently mentioned in your RESOURCES statement is already up to
(or near) one of those limits?

If that's the case, the RESOURCES command can't help you.  All it does
is copy the resources from the mentioned file into your application
file's resource fork.  But your app. file's resource fork also has that
same 16 MB/2190-resource limit.

However, your program can use other resources located in other
files--it's not restricted just to those that are in its own resource
fork.  You can use ResEdit to create as many files as necessary to fit
all your needed resources.

To access these other resources is only a bit more complicated than
accessing the ones that are in your app's resource fork.  You need to
add statements to your program which open and close the external
resource file(s).  The toolbox routines HOPENRESFILE and CLOSERESFILE
can do this for you.  We "veterans" can show you how to use them, if you
like.

- Rick