Path: utzoo!censor!geac!torsqnt!news-server.csri.toronto.edu!cs.utexas.edu!uunet!seas.gwu.edu!kilian From: kilian@seas.gwu.edu (Jens Kilian) Newsgroups: comp.sys.atari.st.tech Subject: Re: two RSC files? Summary: Yes, there is a way - Wordplus does it ! Message-ID: <2492@sparko.gwu.edu> Date: 3 Jan 91 18:13:31 GMT References: <4593@ruuinf.cs.ruu.nl> Sender: news@seas.gwu.edu Reply-To: kilian@seas.gwu.edu (Jens Kilian) Organization: The George Washington University, Washington, D.C. Lines: 32 Yes, there IS a way to use multiple resource files in an application. Unfortunately, it involves a trick using undocumented GEM variables. The technique was demonstrated in a German ST journal, but I don't remember which one and when. Apparently, GEM stores the root of the resource tree in an entry in the global[] array, which can be found via the GEM parameter block passed on an AES call. You should be able to use more than one resource file if you do the following: 1. rsrc_load() the first file 2. rsrc_gaddr() all your pointers 3. save the global[] entry in a variable 4. repeat 1. and 2. for the second file When your program is finished, you rsrc_free() the resources loaded from the second file, restore the pointer saved in step 3, and repeat the rsrc_free() call for the resources from the first file. So. What is that entry in global[] that I've been talking about ? Sorry, but I don't remember, and I can't check now because my ST is 5000 miles away from me at the moment. I suggest you look in some recent book on GEM. Hoping to have helped you. Jens Kilian -- ------------------------------------------------------------------------ Internet: kilian@seas.gwu.edu SnailMail: 4715 MacArthur Blvd. (I don't know any other addresses ...) Washington, DC 20007