home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / acorn / tech / 533 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  1.5 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: Help message problems
  4. Message-ID: <1992Nov9.024250.25751@cs.aukuni.ac.nz>
  5. From: jwil1@cs.aukuni.ac.nz (TMOTA)
  6. Date: Mon, 9 Nov 1992 02:42:50 GMT
  7. Sender: jwil1@cs.aukuni.ac.nz (TMOTA)
  8. Organization: Computer Science Dept. University of Auckland
  9. Lines: 32
  10.  
  11. gpcec@westminster.ac.uk (Tom Kirby-Green) writes:
  12.  
  13. >wimp library - I figure its the ONLY way to learn ). Now the problem is I
  14. >don't seem to be receiving Message_HelpRequest from the !Help app.
  15. >        This message no. is 0x502. Now I know I can pick up messages because
  16.  
  17. Are you sure? I though it was 0x501... and the Helpreply was 0x502 (or is
  18. my memory failing me again?!)
  19.  
  20. ---
  21.  
  22. An easy test to do is to put a debugging 'printf' into your message handler
  23. and print out the recieved message numbers... I use
  24.  
  25. bbc_vdu(26); bbc_vdu(4); /* get the cursor in VDU4 mode at top left of scren*/
  26. printf("Message number: %x", blah);
  27.  
  28. or you could just use the printf, and redirect your programs output to
  29. a file
  30. (in !Run, change
  31.   Run <Obey$Dir>.blah
  32. to
  33.   Run <Obey$Dir>.blah > <Obey$Dir>.output
  34. )
  35.  
  36. This way, you'll know *what* messages you're actually recieving, which is
  37. always a good place to start working out why nothing's happening...
  38.  
  39. -- 
  40. _________________  "I'd like to answer this question in two ways:
  41.   /____ _ _/_ __       First in my normal voice, and then
  42.  // / //_//_ /_/       in a silly, high-pitched whine." (Monty Python)
  43.