Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!iuvax!rutgers!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: ORCA/C question Message-ID: <33741@apple.Apple.COM> Date: 5 Aug 89 00:58:01 GMT References: <10502@boulder.Colorado.EDU> Organization: Apple Computer Inc, Cupertino, CA Lines: 36 In article <10502@boulder.Colorado.EDU> hartkopf@tramp.Colorado.EDU (Jeff Hartkopf) writes: >[...] >/* in the NDA Open function: */ > toolsZeroPage = NewHandle(256, memID, attrBank + attrPage + > attrFixed + attrLocked); Whoops! I missed a couple of things in my first reply. NewHandle() needs a fourth parameter at the end: 0L or NULL. > btn = TLMountVolume(100, 40, "Error loading tools", > "Insert System Disk", "OK", "Cancel"); > if (btn != 1) > SysFailMgr(toolErr, "Unable to load tools"); You don't really need to bother with that--GS/OS will already put up a volume-mount dialog; you can override that using SetSysPrefs, but there's no need. Under 5.0 there is the option of removing the Cancel button from the dialog, which is sometimes appropriate. (You really shouldn't kill the system with SysFailMgr from an NDA, by the way!) > SFStartUp(memID, *toolsZeroPage); Not sure what ORCA/C will do with this, but I'd cast the second parameter to an integer, like this: SFStartUp(memID, (int)(*toolsZeroPage)); --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 AppleLink--Personal Edition: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.