Article View: comp.sys.amiga.tech
Article #12111Re: SetFunction
From: Deven Corzine
Date: Wed, 05 Apr 1989 12:14
Date: Wed, 05 Apr 1989 12:14
18 lines
1366 bytes
1366 bytes
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.
Technical Details
Message-ID:
<DEVEN.89Apr5081411@daniel.pawl.rpi.edu>Path:
arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!csd4.milw.wisc.edu!leah!rpi!rpi.edu!devenReferences:
<518@hvrunix.UUCP>Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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: <DEVEN.89Apr5081411@daniel.pawl.rpi.edu> 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