Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!rpi.edu!deven From: deven@pawl.rpi.edu (Deven Corzine) Newsgroups: comp.sys.amiga.tech Subject: Re: SetFunction Message-ID: Date: 5 Apr 89 12:14:11 GMT References: <518@hvrunix.UUCP> Sender: usenet@rpi.edu Organization: RPI Public Access Workstation Lab, Troy NY Lines: 18 In-reply-to: ahinds@hvrunix.UUCP's message of 3 Apr 89 12:48:10 GMT In article <518@hvrunix.UUCP> ahinds@hvrunix.UUCP (Alexander Hinds) writes: [SetFunctioning DisplayBeep...] SetFunction(IntuitionBase,(long)-60,&MyFunction); You may be causing problems using "&MyFunction"... If you have a function MyFunction(), "MyFunction" is a _pointer_ to that function. "main" is a pointer to your main() function. Someone else mentioned the offset for DisplayBeep being -60 HEX. (I have NOT looked this up.) So, it seems your function call should be: OldDisplayBeep=SetFunction(IntuitionBase,0x60L,MyFunction); Deven -- ------- shadow@pawl.rpi.edu ------- Deven Thomas Corzine --------------------- Cogito shadow@acm.rpi.edu 2346 15th Street Pi-Rho America ergo userfxb6@rpitsmts.bitnet Troy, NY 12180-2306 (518) 272-5847 sum... In the immortal words of Socrates: "I drank what?" ...I think.