🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.sys.amiga.tech
Article #12116

Re: SetFunction

#12116
From: Robert R. Burns
Date: Wed, 05 Apr 1989 17:36
19 lines
1089 bytes
In article <518@hvrunix.UUCP> ahinds@hvrunix.UUCP (Alexander Hinds) writes:
>
>	Can anybody tell me how to use SetFunction()?  ...
>
>	SetFunction(IntuitionBase,(long)-60,&MyFunction);
>I used -60 because it is DisplayBeep() offeset.(I think).

er, why mess with numbers?

    extern int LVODisplayBeep;

    SetFunction(IntuitionBase, &LVODisplayBeep, &MyFunction);

and link with amiga.lib
-- 
Bob Burns, amiga!kodiak                    _
| /_  _|. _ |      Commodore __           |_) _ |_  _ )'
|<(_)(_)|(_\|<      /\ |  ||| _` /\       |_)(_\| )(_\ |
| \ Software    ___/..\|\/|||__|/..\___            Faith
Technical Details
Message-ID: <3717@amiga.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!kodiak
References: <518@hvrunix.UUCP> <946@applix.UUCP>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!bloom-beacon!apple!oliveb!amiga!kodiak
From: kodiak@amiga.UUCP (Robert R. Burns)
Newsgroups: comp.sys.amiga.tech
Subject: Re: SetFunction
Keywords: can't get it work
Message-ID: <3717@amiga.UUCP>
Date: 5 Apr 89 17:36:10 GMT
References: <518@hvrunix.UUCP> <946@applix.UUCP>
Reply-To: kodiak@tooter.UUCP (Robert R. Burns)
Organization: Commodore-Amiga Inc, Los Gatos CA
Lines: 19