Path: news1.icaen!news.uiowa.edu!news.physics.uiowa.edu!math.ohio-state.edu!howland.erols.net!news.mathworks.com!fu-berlin.de!unlisys!tooly From: tooly@berlin.snafu.de (Theo Schneider) Newsgroups: comp.sys.apple2.programmer Subject: Re: Using Resources from an Extra Date: 1 Dec 1996 12:42:30 GMT Organization: Unlimited Surprise Systems, Berlin Lines: 56 Message-ID: <57rufm$rob$1@unlisys.unlisys.net> References: <57c6t3$dc0@merki0.connect.com.au> NNTP-Posting-Host: berlin.snafu.de X-Newsreader: NN version 6.5.0 #3 (NOV) hochstrasse@ubaclu.unibas.ch (Urs Hochstrasser) writes: >In article <57c6t3$dc0@merki0.connect.com.au>, Andrew Roughan > wrote: >> So obviously I need to open the resource fork manually (and login >> to the resource manager). Following this thought then, how do I >> open my own resource fork? Given that I think that I can't really >> know the location I was loaded from (two choices for Finder Extras), >> or the name of the file? >> >> I would have thought this would be a highly desirable activity for >> all programs. Am I missing something basic here? >This sounds very familar to me. StartupTools only opens the resource fork >with S16 files. NDAs, EXEs (ORCA shell applications) and Symbolix Plugins >don't. There is a tech note about this: #83 Resource Manager Stuff: >CALLING STARTUPTOOLS FROM A SHELL APPLICATION (FILE TYPE $B5, EXE). >Basically you call ResourceStartUp, get the pathname of your Extra by >calling LGetPathname2 with your user ID and pass the pathname to >OpenResourceFile. >Hope it helps Hi there, if you want to use the ResourceFork in your FinderExtra, than you can do this : ---START--- Word myMemID, myRezID, curApp; myMemID = MMStartUp (); curApp = OpenResourceFileByID (1, myMemID); myRezID = GetCurResourceFile (); -- do anything with the Resourcefork what you want -- SetCurResourceApp (curApp); CloseResourceFile (myRezID); ---END--- I hope this help. Best regards from Germany Theo -- --------------------------------------------------------------- Theo Schneider / Babelsberger Str. 40 / 10715 Berlin - Germany Tel. ++49 30 854 29 72 / email tooly@berlin.snafu.de ---------------------------------------------------------------