Path: news1.icaen!news.uiowa.edu!NewsNG.Chicago.Qual.Net!128.174.5.49!vixen.cso.uiuc.edu!howland.erols.net!newsfeed.cwix.com!205.231.236.10!newspeer.monmouth.com!tank.news.pipex.net!pipex!uunet!ams.uu.net!ffx.uu.net!in4.uu.net!news.rt66.com!not-for-mail From: "Mike Westerfield" Newsgroups: comp.sys.apple2.programmer Subject: Re: GSoft Quickdraw Date: Thu, 22 Apr 1999 22:30:30 -0600 Organization: Byte Works, Inc. Lines: 34 Distribution: world Message-ID: <7fot3p$egn$1@news.rt66.com> References: <#77aeX7i#GA.338@nih2naaf.prod2.compuserve.com> NNTP-Posting-Host: pmg17.rt66.com Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit X-Newsreader: Microsoft Outlook Express for Macintosh - 4.01 (295) Xref: news1.icaen comp.sys.apple2.programmer:10522 ---------- In article <#77aeX7i#GA.338@nih2naaf.prod2.compuserve.com>, Bryn Jones <71307.1457@CompuServe.COM> wrote: >Am trying to pass an array to an interface function in GSoft BASIC. > >DIM mymask as mask > >for i = 0 to 3 > mymask(i*2) = $55 > mymask(i*2+1) = $AA >next i > >HGR >SetPenMask(mymask) > >etc. > >All I get is 'Parameter type mismatch at parameter 1' >I need to sort this typing out. >Can any kind programmer point me in the right direction. Ouch. This appears to be caused by a bug in GSoft BASIC. The problem has to do with the fact that Mask is an array. I'll fix this in the next update. Meanwhile, you can fix this temporarily on your own if you can handle recompiling GSoftTools.int. Change the parameter for SetPenMask to something more hospitable, like a pointer to a byte, then pass the address of the first element of the myMask array. If you can't recompile GSoftTools.int on your own, email me and I'll make some other arrangement. Mike Westerfield