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

  1. Path: sparky!uunet!mcsun!ub4b!news.cs.kuleuven.ac.be!blekul11!frmop11!dearn!esoc!smartin
  2. Organisation: European Space Operation Centre (E.S.O.C)
  3. Date: Tuesday, 10 Nov 1992 11:38:18 CET
  4. From: <SMARTIN@ESOC.BITNET>
  5. Message-ID: <92315.113818SMARTIN@ESOC.BITNET>
  6. Newsgroups: comp.sys.acorn.tech
  7. Subject: Re: Receiving message 0x502, and win' Work Area flags...
  8. References: <1992Nov3.095730.10327@westminster.ac.uk>
  9.  <1992Nov9.005325.24603@cs.aukuni.ac.nz>
  10. Lines: 26
  11.  
  12. In article <1992Nov9.005325.24603@cs.aukuni.ac.nz>, jwil1@cs.aukuni.ac.nz
  13. (TMOTA) says:
  14. >An easy test to do is to put a debugging 'printf' into your message handler
  15. >and print out the recieved message numbers... I use
  16. >
  17. >bbc_vdu(26); bbc_vdu(4); /* get the cursor in VDU4 mode at top left of scren*/
  18. >printf("Message number: %x", blah);
  19. >
  20. >or you could just use the printf, and redirect your programs output to
  21. >a file
  22. >(in !Run, change
  23. >  Run <Obey$Dir>.blah
  24. >to
  25. >  Run <Obey$Dir>.blah > <Obey$Dir>.output
  26. >)
  27. >
  28. >This way, you'll know *what* messages you're actually recieving, which is
  29. >always a good place to start working out why nothing's happening...
  30.  
  31. How about using fprintf ? I always find this much simpler.
  32.  
  33. -----------------------------------------------------------------
  34. Stuart Martin (Logica at ESOC)     smartin@esoc.bitnet
  35.  
  36. Any opinions expressed in the above posting are in no way intended to
  37. represent the official opinions of either Logica or ESOC.
  38.