Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!ames!amdahl!oliveb!amiga!jimm From: jimm@amiga.UUCP (Jim Mackraz) Newsgroups: comp.sys.amiga.tech Subject: Re: SetFunction Message-ID: <3767@amiga.UUCP> Date: 22 Apr 89 01:42:32 GMT References: <518@hvrunix.UUCP> Reply-To: jimm@cloyd.UUCP (Jim Mackraz) Organization: Commodore-Amiga Inc, Los Gatos CA Lines: 28 In article deven@pawl.rpi.edu (Deven Corzine) writes: ) So, it seems your function call should be: ) ) OldDisplayBeep=SetFunction(IntuitionBase,0x60L,MyFunction); I don't know if 0x60 is correct either, but I think you can use LVODisplayBeep. Just declare it as, hmm, what would that be? Maybe int LVODisplayBeep[]; or int LVODisplayBeep; then use &LVODisplayBeep. Anyway, just suppose it's 0x60 ... What I wanted to say was that the little function you replace DisplayBeep with had better be reentrant, because people call this sucker a whole lot. It would also be nice if it didn't run synchronously (which might lead you to THINK it's reentrant), so that people don't have to wait for you to be done beeping 100 times if they hold down a repeating key in a string gadget or something. I guess I just wanted to comment that beeping is harder than one (I) might think. jimm -- Jim Mackraz, I and I Computing "He's hidden now, but you can see {cbmvax,well,oliveb}!amiga!jimm The bubbles where he breathes." - Shriekback Opinions are my own. Comments are not to be taken as Commodore official policy.