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

  1. Path: sparky!uunet!elroy.jpl.nasa.gov!ucla-cs!rutgers!cmcl2!panix!rryan
  2. From: rryan@panix.com (Rob Ryan)
  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: <1992Dec21.174914.24388@panix.com>
  6. Date: 21 Dec 92 17:49:14 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>
  8. Distribution: comp.os.ms-windows.programmer.tools
  9. Organization: Panix, NYC
  10. Lines: 29
  11.  
  12. In <1992Dec21.130416.10774@titan.inmos.co.uk> jeremy@cheetah.inmos.co.uk (Jeremy Thorp) writes:
  13.  
  14. >|> The main thing is that you need a line in your .DEF file that says:
  15. >|> 
  16. >|>   IMPORTS        _DebugOutput=KERNEL._DebugOutput
  17. >|> 
  18. >|> Also, this is a Windows v3.1 routine, so it won't work if you have
  19. >|> Windows 3.0.  I'm not sure why this import is needed.  It is a documented
  20. >|> function of the Windows 3.1 API, so you really shouldn't need to do this,
  21. >|> but you do.  Also, the docs don't seem to reference to DBF_APPLICATION.
  22. >|> Perhaps they simply expect everyone to use TRACE().
  23. >
  24. >I have tried (on previous occasions) the IMPORTS thing, and it
  25. >enables the program to link ok.
  26. >
  27. >However, I have NEVER got DebugOutput to actually output anything. I
  28. >am using the DBWin program provided in the SDK to display messages.
  29. >OutputDebugString, and TRACE both work, DebugPut doesn't - ever!
  30. >
  31. >Does anyone know what I am doing wrong?
  32.  
  33. In dbwin, do you have the "application" box checked under trace in the
  34. settings dialog box?  If this isn't checked, nothing will be produced.
  35. You don't need to provide the name of the application, but make sure
  36. that the "Application" box is checked.
  37.  
  38. -- 
  39.  Rob Ryan
  40.     rryan@panix.com
  41.