home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / acorn / tech / 532 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.6 KB

  1. Path: sparky!uunet!decwrl!waikato.ac.nz!aukuni.ac.nz!cs18.cs.aukuni.ac.nz!jwil1
  2. Newsgroups: comp.sys.acorn.tech
  3. Subject: Re: Receiving message 0x502, and win' Work Area flags...
  4. Message-ID: <1992Nov9.005325.24603@cs.aukuni.ac.nz>
  5. From: jwil1@cs.aukuni.ac.nz (TMOTA)
  6. Date: Mon, 9 Nov 1992 00:53:25 GMT
  7. Sender: jwil1@cs.aukuni.ac.nz (TMOTA)
  8. References: <1992Nov3.095730.10327@westminster.ac.uk>
  9. Organization: Computer Science Dept. University of Auckland
  10. Lines: 29
  11.  
  12. gpcec@westminster.ac.uk (Tom Kirby-Green) writes:
  13.  
  14. >wimp library - I figure its the ONLY way to learn ). Now the problem is I
  15. >don't seem to be receiving Message_HelpRequest from the !Help app.
  16. >        This message no. is 0x502. Now I know I can pick up messages because
  17.  
  18. Are you sure? I though it was 0x501... and the Helpreply was 0x502 (or is
  19. my memory failing me again?!)
  20.  
  21. An easy test to do is to put a debugging 'printf' into your message handler
  22. and print out the recieved message numbers... I use
  23.  
  24. bbc_vdu(26); bbc_vdu(4); /* get the cursor in VDU4 mode at top left of scren*/
  25. printf("Message number: %x", blah);
  26.  
  27. or you could just use the printf, and redirect your programs output to
  28. a file
  29. (in !Run, change
  30.   Run <Obey$Dir>.blah
  31. to
  32.   Run <Obey$Dir>.blah > <Obey$Dir>.output
  33. )
  34.  
  35. This way, you'll know *what* messages you're actually recieving, which is
  36. always a good place to start working out why nothing's happening...
  37. -- 
  38. _________________  "I'd like to answer this question in two ways:
  39.   /____ _ _/_ __       First in my normal voice, and then
  40.  // / //_//_ /_/       in a silly, high-pitched whine." (Monty Python)
  41.