Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!zaphod.mps.ohio-state.edu!wuarchive!uunet!cbmvax!carolyn From: carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) Newsgroups: comp.sys.amiga.programmer Subject: Re: DOSBase Message-ID: <22425@cbmvax.commodore.com> Date: 13 Jun 91 22:48:07 GMT References: <1991Jun13.072854.12241@disk.uucp> Reply-To: carolyn@cbmvax.commodore.com (Carolyn Scheppner - CATS) Distribution: usa Organization: Commodore, West Chester, PA Lines: 21 In article <1991Jun13.072854.12241@disk.uucp> specter@disk.uucp (Byron Max Guernsey) writes: >Does the dos library always need to be opened? I normally open it, but I noticed >that I forgot one time and it worked fine with the DOS calls. (I think I was >using Delay() ) I guess it is poor practice not to open it, since if all dos >using processes were gone you would be out of luck correct? Generally, due to bad early example code, most programs that OpenLibrary dos.library themselves put the result in a variable called DosBase. This is pretty much a meaningless exercise since amiga.lib is looking for a variable called DOSBase (note the capitalization). The standard amiga and SAS startup codes (like c.o) OpenLibrary dos.library and put the result in the correctly named variable (DOSBase) for you. -- ========================================================================== Carolyn Scheppner -- Tech. Mgr. CATS - Commodore Amiga Technical Support PHONE 215-431-9180 {uunet,rutgers}!cbmvax!carolyn carolyn@commodore.com Spice up old code with a dazzling array of pointers to void functions. ==========================================================================