Path: utzoo!utgpu!news-server.csri.toronto.edu!mailrus!iuvax!pur-ee!sage.cc.purdue.edu!ar4 From: ar4@sage.cc.purdue.edu (Piper Keairnes) Newsgroups: comp.sys.mac.programmer Subject: SetUpA4() and RestoreA4() Message-ID: <3819@sage.cc.purdue.edu> Date: 18 Mar 90 03:38:50 GMT Reply-To: ar4@sage.cc.purdue.edu (Piper Keairnes) Organization: Purdue University Lines: 20 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... I apparently don't understand the complete concept and need more of a guideline to go on than some sketchy reading... Could someone please help.... --Piper