Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!uwm.edu!gem.mps.ohio-state.edu!wuarchive!psuvax1!husc6!sunfs3!kent From: kent@sunfs3.camex.uucp (Kent Borg) Newsgroups: comp.sys.mac.programmer Subject: Re: Think C Request Message-ID: <545@sunfs3.camex.uucp> Date: 26 Oct 89 04:17:22 GMT References: <541@sunfs3.camex.uucp> <69099@tut.cis.ohio-state.edu> Reply-To: kent@lloyd.UUCP (Kent Borg) Organization: Camex, Inc., Boston, Mass USA Lines: 29 In article <69099@tut.cis.ohio-state.edu> wilson m liaw writes: .>In article <541@sunfs3.camex.uucp> kent@lloyd.UUCP (Kent Borg) writes: .>> .>>Request for a very simple feature in Think C: .>> .>>When the resource file for a project is not available (because I have .>>it open ResEdit), Think C should complain instead simply letting my .>>program die. .>>.... .> .> The thing is, THINK C doesn't know if it should look for it. I .>am assuming that everytime you run a project, THINK C tries to open a file .>which is called .rsrc, and if the process fails THINK C assums .>that there is no rsrc file needed for this project. I almost bought your answer, but I think not. Think C shouldn't assume so much, it should look at the error. Couldn't it notice the difference between "fnfErr -43 /*File not found*/" and "opWrErr -49 /*file already open with with write permission*/"? If the file is not found, forget it, but if I already have it open in ResEdit, please make some noise. -- Kent Borg "Wouldn't it be fun not to be famous? kent@lloyd.uucp Wouldn't it be fun not to be rich?" or -Cole Porter lyric (from Aladdin) ...!husc6!lloyd!kent