home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / hypercar / 4089 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.0 KB

  1. Path: sparky!uunet!spool.mu.edu!uwm.edu!rpi!bu.edu!dartvax!Roger.W.Brown
  2. From: Roger.W.Brown@dartmouth.edu (Roger W. Brown)
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Re: external window probs
  5. Message-ID: <1992Nov5.131610.13864@dartvax.dartmouth.edu>
  6. Date: 5 Nov 92 13:16:10 GMT
  7. References: <cey3rKG00iV0M5y18i@andrew.cmu.edu>
  8. Sender: news@dartvax.dartmouth.edu (The News Manager)
  9. Organization: Dartmouth College, Hanover, NH
  10. Lines: 14
  11. X-Posted-From: InterNews1.0b1@newshost.dartmouth.edu
  12.  
  13. In article <cey3rKG00iV0M5y18i@andrew.cmu.edu>
  14. "George J. Baxter" <gb2a+@andrew.cmu.edu> writes:
  15.  
  16. >   test = &((XWEventInfoPtr)(paramPtr->params[1]))->event;
  17.  
  18. When working in C, params are zero-based. What you want is
  19.  
  20. test = &((XWEventInfoPtr)(paramPtr->params[0]))->event;
  21.                                            ^
  22.                                           
  23. --------------------------------------------------------------------
  24. Roger Brown                                roger.brown@dartmouth.edu
  25. Software Development
  26. Kiewit Computation Center, Dartmouth College, Hanover, NH
  27.