Article View: comp.sys.mac.programmer.codewarrior
Article #1365Re: NIL incoming AppleEvent in high level event handler?
From: Jolly Roger
Date: Wed, 01 Nov 2000 23:26
Date: Wed, 01 Nov 2000 23:26
31 lines
2098 bytes
2098 bytes
In article <011120002143297955%reinder@mac.com>, Reinder Verlinde <reinder@mac.com> wrote: > [[ This message was both posted and mailed: see > the "To," "Cc," and "Newsgroups" headers for details. ]] > > In article <KDXL5.27431$Fe4.699434@typhoon.austin.rr.com>, JollyRoger > <jolly-spam-bites-roger@pobox.com> wrote: > > > > > Can someone tell me what I am doing wrong here? I've got an > > application > > where I install a few AppleEvent handlers, but when those handlers get > > called, the AppleEvent parameter is always NIL. > > > > ... > > The handlers are prototyped like this: > > > > OSErr AEOpenAppHandler(AppleEvent *theAppleEvent, AppleEvent *reply, > > long refCon); > > > Shouldn't that be > > pascal OSErr AEOpenAppHandler( > AppleEvent *theAppleEvent, AppleEvent *reply, long refCon); > > ? Duh! Now I feel stupid! Thank you very much! That solved the problem. JR
Technical Details
Message-ID:
<jolly-spam-bites-roger-09AC68.17264401112000@news.mtwk.sps.mot.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!jolly-spam-bites-rogerReferences:
<KDXL5.27431$Fe4.699434@typhoon.austin.rr.com> <011120002143297955%reinder@mac.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 10bcce,12e87422eb8b0f4d X-Google-Attributes: gid10bcce,public X-Google-Thread: 101ec9,12e87422eb8b0f4d X-Google-Attributes: gid101ec9,public X-Google-Thread: f635e,12e87422eb8b0f4d X-Google-Attributes: gidf635e,public X-Google-Thread: fed41,12e87422eb8b0f4d X-Google-Attributes: gidfed41,public X-Google-ArrivalTime: 2000-11-01 14:26:53 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-03!sn-post-01!supernews.com!corp.supernews.com!jolly-spam-bites-roger From: Jolly Roger <jolly-spam-bites-roger@pobox.com> Newsgroups: comp.sys.mac.programmer.codewarrior,codewarrior.mac,comp.sys.mac.programmer.misc,comp.sys.mac.programmer.help Subject: Re: NIL incoming AppleEvent in high level event handler? Date: Wed, 01 Nov 2000 17:26:44 -0600 Organization: very little - sometimes choatic Message-ID: <jolly-spam-bites-roger-09AC68.17264401112000@news.mtwk.sps.mot.com> References: <KDXL5.27431$Fe4.699434@typhoon.austin.rr.com> <011120002143297955%reinder@mac.com> Posted-And-Mailed: yes User-Agent: MT-NewsWatcher/3.0 (PPC) X-Complaints-To: newsabuse@supernews.com Lines: 31