Hi Charlie, Sorry for my misunderstanding your problem. Again, I have a somewhat similar problem in one of my games. I don't do it with the icons, but with sounds; although, I don't see what this would be any different. The main difference is that I open these additional Resource Files at the beginning and leave them open throughout the duration of the program. The resource files in my case are in the same folder as the application, although I make them invisible; so I use the following calls: volRefNum% = SYSTEM(_aplVol) rsrcFileName$ = "SomeName" permission% = _fsRdPerm rsrcFileID% = USR OPENRFPERM(rsrcFileName$,volRefNum%,permission%) After doing this I am able to summon any Resources from this file that I need. The only real difference that I see in what you are doing is you have FN OPENRFPERM and I have USR OPENRFPERM. It's been so long since I assembled this bit of code that I don't remember exactly why I used USR; but, in glancing at the manual, it seems to do everything that needs being done (page 323 of FBII Ref Manual). In fact there are a couple of other snippets there that will probably solve all your problems. If you have more than one resource file open at a time, you'll want to make sure that you're not getting the wrong one, since there is an hierarchical searching for resources in all open resource files. So you CAN have more than one open at a time. Forest for the trees? Joe Wilkins Charlie Dickman wrote: > Joe, > > The iconRect is DIMmed and if I use GETCICON it works just fine. But > what I'm trying to do is get the cicn from a resource file other than > the current application's hence the fiddling with OPENRFPERM, > USERESFILE, etc. GETCICON gets the icon from the current application. > > >Not exactly sure, but in most of my FNs I use the following sequence of calls > >and they work fine: > > > >icnHdl& = FN GETCICON(rsrcID%) > >CALL PLOTCICON (iconRect,icnHdl&) > >CALL DISPOSCICON (icnHdl&) > > > >Did you remember to DIM the iconRect ? like: > > > >DIM iconRect.8 > > > >Joe Wilkins > > > >Charlie Dickman wrote: > > > > > Friends, > > > > > > I'm using the following code to extract a cicn from a resource file > > > and plot it but what gets plotted is just a bunch of junk. If I use > > > GETCICON to extract the icon from the app's resources this works > > > fine. CALLing DETACHRESOURCE on the iconH& doesn't change anything I > > > must be missing some magic somewhere. Can anyone clue me in? > > > > > > priorResFile% = FN CURRESFILE > > > resFileID% = FN OPENRFPERM(filename$, vRefNum%, _fsRdPerm) > > > CALL USERESFILE(resFileID%) > > > DEFSTR LONG > > > iconH& = FN GET1RESOURCE(_"cicn", 128) > > > DEFSTR WORD > > > CALL CLOSERESFILE(resFileID%) > > > CALL USERESFILE(priorResFile%) > > > LONG IF iconH& > > > WINDOW 1,"Icon Calls",(0,0)-(32,32),_docNoGrow > > > CALL SETRECT(theRect, 0, 0, 32, 32) > > > CALL PLOTCICON(theRect, iconH&) > > > END IF > > > > > > Thanks, > > > Charlie Dickman > > > charlied@... > > Charlie Dickman > charlied@... > > -- > To unsubscribe, send ANY message to <futurebasic-unsubscribe@...>