Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!watmath!clyde!caip!cbmvax!carolyn From: carolyn@cbmvax.cbm.UUCP (Carolyn Scheppner) Newsgroups: net.micro.amiga Subject: Re: Using Dos library from basic Message-ID: <463@cbmvax.cbmvax.cbm.UUCP> Date: Fri, 27-Jun-86 11:29:40 EDT Article-I.D.: cbmvax.463 Posted: Fri Jun 27 11:29:40 1986 Date-Received: Sat, 28-Jun-86 08:15:07 EDT References: <30@uwmacc.UUCP> Reply-To: carolyn@cbmvax.UUCP (Carolyn Scheppner) Organization: Commodore Technology, West Chester, PA Lines: 36 In article <30@uwmacc.UUCP> net@uwmacc.UUCP (jeff kesselman) writes: >Trying to get around the aformentioned bug in input$(), I attempted to use >the Dos library, with the dos.bmap include with AmigaBAsic and the library >command. Unfortunately, the appropriate commands are open,read,write, and >close, which are treated by basic as keywords EVEN in the middle of a >DECLARE FUNCTION xxxxxx LIBRARY statement. I HAVE to declare at least open, >other wise I will get no return value, and thus no file handle to pass to >the others. Didn't anybody at Microsoft or Commodore/Amiga try USING the >demo files provided? (As a side note, trying to run the Library demo > program gets me a "file not found" for graphics.library. What gives?) > 1. What you need is a dos.bmap created with NewConvertFD. NewConvertFD prepends an 'x' to all system function names known to conflict with AmigaBasic keywords (so you can call xOpen, xRead, etc.). You also need a corrected dos_lib.fd to create it from. I have sent both of these and several demos to the mod.sources.amiga moderator. 2. The demos run fine if you are cd'd (CHDIR'd) to the right place. When AmigaBasic executes a LIBRARY statement, it looks for the libraryname.bmap file. The two places it looks are the LIBS: directory and the directory you are cd'd to. Since the graphics.bmap for the Library demo is in the BasicDemos directory (drawer), you must be cd'd there. This can be done by either starting the Library demo from WorkBench or by doing a CHDIR "Extras:BasicDemos" before running it from AmigaBasic. -- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Carolyn Scheppner -- CBM >>Amiga Technical Support<< UUCP ...{allegra,caip,ihnp4,seismo}!cbmvax!carolyn PHONE 215-431-9180 =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=