Path: utzoo!attcan!uunet!clyde.concordia.ca!news-server.csri.toronto.edu!cs.utexas.edu!usc!brutus.cs.uiuc.edu!zaphod.mps.ohio-state.edu!van-bc!ubc-cs!uw-beaver!Teknowledge.COM!unix!hplabs!pyramid!pyramid.com!bjb From: bjb@pyramid.com (Bruce Beare) Newsgroups: comp.sys.mac.programmer Subject: Re: SetUpA4() and RestoreA4() Message-ID: <106052@pyramid.pyramid.com> Date: 19 Mar 90 19:37:36 GMT References: <3819@sage.cc.purdue.edu> Sender: news@pyramid.pyramid.com Organization: Pyramid Technology Corporation Lines: 28 In article <3819@sage.cc.purdue.edu> ar4@sage.cc.purdue.edu (Piper Keairnes) writes: > cc.purdue.edu!ar4 > > Well, I've just converted one of my applications into a DA. All has > gone well except what to do for the SetUpA4() and RestoreA4(). I'm working > with ThinkC 4.0 and using the "DA Main.c" code as instructed so the DA works > fine when run under the ThinkC environment. > > BUT, when I remove the "DA Main.c" file from my project, rename the > "_main" back to "main", compile the project as a desk accessory and then > run it.... > LA BOMBA !! > > So, I placed the SetUpA4() and RestoreA4() pair inside of two functions: > doControl and doClose. Still bombed... > You may also have other problems -- not related to A4, etc. For instance, DAs require a rather particular numbering sequence for any resources that they need. See IM (I don't remember chapter and verse). -Bruce