[comp.sys.mac.programmer] Posting High Level Events BY Application Signiture

nlewispn@cc.curtin.edu.au (Peter N Lewis) (06/13/91)

Hi All,
   I can't seem to post a high level event to an application BY signiture.
I used the following code:

  myEvent.what := kHighLevelEvent;
  myEvent.message := LongInt('MyAp');
  myEvent.where := Point(LongInt('MyAp'));
  myOpts := receiverIDisSignature + nReturnReceipt;
  myRecvID := 'MyAp';
  myErr := PostHighLevelEvent(myEvent,@myRecvID,0,NIL,0,myOpts);

But I get an error: connectionInvalid  -609  Connection is invalid

The app with signiture MyAp is running, and displays high level events 
received in a window. (It starts up and displays the open application event).

Am I doing anything obviously wrong?

TIA,
   Peter.

BTW, where do System 7 bug reports go?
-- 
Disclaimer:Curtin & I have an agreement:Neither of us listen to either of us.
*-------+---------+---------+---------+---------+---------+---------+-------*
Internet: Lewis_P@cc.curtin.edu.au              I Peter Lewis
Bitnet: Lewis_P%cc.curtin.edu.au@cunyvm.bitnet  I NCRPDA, Curtin University
UUCP: uunet!munnari.oz!cc.curtin.edu.au!Lewis_P I GPO Box U1987
PSImail: psi%050529452300070::Lewis_P           I Perth, WA, 6001, AUSTRALIA
Has anyone ever found someone who used a Mac and then Changed To a PC?