home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #1 / NN_1993_1.iso / spool / comp / os / mswindo / programm / misc / 4869 < prev    next >
Encoding:
Text File  |  1993-01-12  |  2.2 KB  |  55 lines

  1. Newsgroups: comp.os.ms-windows.programmer.misc
  2. Path: sparky!uunet!inmos!titan.inmos.co.uk!cheetah!jeremy
  3. From: jeremy@cheetah.inmos.co.uk (Jeremy Thorp)
  4. Subject: Re: DebugOutput: Unresolved External error...
  5. Message-ID: <1993Jan12.104315.18218@titan.inmos.co.uk>
  6. Sender: jeremy@cheetah (Jeremy Thorp)
  7. Organization: INMOS Limited, Bristol, UK
  8. References:  <9301112109.AA06983@deepthought.cs.utexas.edu>
  9. Date: Tue, 12 Jan 1993 10:43:15 GMT
  10. Lines: 43
  11.  
  12. In article <9301112109.AA06983@deepthought.cs.utexas.edu>, pugsley@h32.nswc.navy.mil (Don Pugsley) writes:
  13. |> 
  14. |> My linker cannot find DebugOutput (L2029: Unresolved External)... a search
  15. |> of all files in the \WINDEV tree finds NO occurences except DBAPI.TXT and
  16. |> WINDOWS.H!  I am running the 3.1 debug version, have #included toolhelp.h
  17. |> and windows.h, and have tried linking with OLDNAMES.LIB as suggested by the
  18. |> Error Reference section on L2029.  Where is the code for this function
  19. |> supposed to be? I am sure this is a simple problem but I am very
  20. |> frustrated!  Thanks...
  21.  
  22. I had great problems with this too!! Eventually I got enough info from the net to get it to
  23. work. Here goes:
  24.  
  25. First: add the following to the .DEF file (From: jjacob@nyx.UUCP)
  26.  
  27. IMPORTS
  28.     _DebugOutput=KERNEL._DebugOutput
  29.  
  30. This will make the linkage work, but is not enough on it's own.
  31.  
  32. Second: for each call, 'OR' in DBF_APPLICATION to the first parameter
  33. (From: rryan@panix.com): 
  34.  
  35. >I have a point in my code that calls OutputDebugString, DebugOutput,
  36. >and then OutputDebugString again (3 successive lines).  The
  37. >OutputDebugString strings are displayed by DBWin, but the DebugOutput
  38. >string is not. I am using DBF_TRACE as the first parameter to
  39. >DebugOutput
  40.  
  41. Ah ha.  You should use DebugOutput(DBF_TRACE | DBF_APPLICATION, ...).
  42. That will do it.  It's not in the docs, but seems to work.
  43.  
  44. Third: If you are using DbWin, make sure that the application check box is checked.
  45.  
  46. Hope this helps, Jeremy
  47.  
  48. -- 
  49. Jeremy Thorp, INMOS Ltd,     |    jeremy@inmos.com
  50. 1000 Aztec West, Almondsbury,     |    jeremy@inmos.co.uk
  51. Bristol, BS12 4SQ, UK.        |    
  52. Tel.  +44 454 616616    Fax. +44 454 617910
  53. The above is the personal opinion of the author,
  54. and does not necessarily reflect INMOS policy.
  55.