home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / os / mswindo / programm / tools / 1795 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  2.7 KB

  1. Path: sparky!uunet!pipex!bnr.co.uk!uknet!fulcrum!inmos!titan.inmos.co.uk!cheetah!jeremy
  2. From: jeremy@cheetah.inmos.co.uk (Jeremy Thorp)
  3. Newsgroups: comp.os.ms-windows.programmer.tools
  4. Subject: Re: DebugOutput() probs : was Re: MSC 7.0 windows debug mode and 'Cant read from device AUX'
  5. Message-ID: <1992Dec22.114159.19769@titan.inmos.co.uk>
  6. Date: 22 Dec 92 11:41:59 GMT
  7. References: <RHARMON.92Dec10144328@triton.uucp> <1992Dec11.160246.3274@panix.com> <1992Dec15.114345.8779@titan.inmos.co.uk> <1992Dec16.135938.21596@panix.com> <1992Dec21.130416.10774@titan.inmos.co.uk> <1992Dec21.174914.24388@panix.com>
  8. Sender: jeremy@cheetah (Jeremy Thorp)
  9. Distribution: comp.os.ms-windows.programmer.tools
  10. Organization: INMOS Limited, Bristol, UK
  11. Lines: 45
  12.  
  13. In article <1992Dec21.174914.24388@panix.com>, rryan@panix.com (Rob Ryan) writes:
  14. |> In <1992Dec21.130416.10774@titan.inmos.co.uk> jeremy@cheetah.inmos.co.uk (Jeremy Thorp) writes:
  15. |> 
  16. |> >|> The main thing is that you need a line in your .DEF file that says:
  17. |> >|> 
  18. |> >|>   IMPORTS        _DebugOutput=KERNEL._DebugOutput
  19. |> >|> 
  20. |> >|> Also, this is a Windows v3.1 routine, so it won't work if you have
  21. |> >|> Windows 3.0.  I'm not sure why this import is needed.  It is a documented
  22. |> >|> function of the Windows 3.1 API, so you really shouldn't need to do this,
  23. |> >|> but you do.  Also, the docs don't seem to reference to DBF_APPLICATION.
  24. |> >|> Perhaps they simply expect everyone to use TRACE().
  25. |> >
  26. |> >I have tried (on previous occasions) the IMPORTS thing, and it
  27. |> >enables the program to link ok.
  28. |> >
  29. |> >However, I have NEVER got DebugOutput to actually output anything. I
  30. |> >am using the DBWin program provided in the SDK to display messages.
  31. |> >OutputDebugString, and TRACE both work, DebugPut doesn't - ever!
  32. |> >
  33. |> >Does anyone know what I am doing wrong?
  34. |> 
  35. |> In dbwin, do you have the "application" box checked under trace in the
  36. |> settings dialog box?  If this isn't checked, nothing will be produced.
  37. |> You don't need to provide the name of the application, but make sure
  38. |> that the "Application" box is checked.
  39.  
  40. The application check box is checked.
  41.  
  42. I have a point in my code that calls OutputDebugString, DebugOutput, and then
  43. OutputDebugString again (3 successive lines).
  44. The OutputDebugString strings are displayed by DBWin, but the
  45. DebugOutput string is not. I am using DBF_TRACE as the first parameter to DebugOutput
  46.  
  47. Yours, perplexed but still hopeful,
  48.  
  49. Jeremy
  50.  
  51. -- 
  52. Jeremy Thorp, INMOS Ltd,     |    jeremy@inmos.com
  53. 1000 Aztec West, Almondsbury,     |    jeremy@inmos.co.uk
  54. Bristol, BS12 4SQ, UK.        |    
  55. Tel.  +44 454 616616    Fax. +44 454 617910
  56. The above is the personal opinion of the author,
  57. and does not necessarily reflect INMOS policy.
  58.