Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!ra!rosenber From: rosenber@ra.abo.fi (Robin Rosenberg INF) Newsgroups: comp.sys.amiga.programmer Subject: Re: Problems with ReportMouse() Message-ID: Date: 23 Jan 91 17:38:15 GMT References: <1991Jan23.031010.11248@cs.uiuc.edu> Sender: rosenber@ra.abo.fi Organization: Abo Akademi University, Finland Lines: 37 In-reply-to: schwager@cs.uiuc.edu's message of 23 Jan 91 03:10:10 GMT In article <1991Jan23.031010.11248@cs.uiuc.edu> schwager@cs.uiuc.edu (Michael Schwager) writes: >Ok, I'm stumped. Sheesh, I can't even get a ReportMouse() to work (Workbench >version 1.3.2 on an A500)! Here's what I've got: [...] >struct Window *BackWindow = NULL; >if ((BackWindow = (struct Window *) OpenWindow (&BackWindowOrig)) == > NULL){ > shutdown ("Unable to open up background window"); > } >JUST after that, I do this: >ReportMouse (BackWindow, FALSE); >And it fails to un-report mouse events. >If I do this: >ReportMouse (BackWindow, TRUE); >The machine gurus immediately with a memory error. I'm using Aztec C, v >3.6 (I know, I know, get that upgrade...), Amiga 500 with 3 Meg of RAM, >Supra SCSI interface. From the FM (RKM) !SPECIAL NOTE: ! Some compilers and link files switch the arguments to this function ! about in unpredictable ways. The call will take one of the two forms: ! ! ReportMouse(Window, (ULONG)Boolean); ! --or-- ! ReportMouse(Boolean, Window); ! ! The Manx Aztec compiler prefers the second form.... ---- Robin