title: Windows 98 SE - Calling OutputDebugString from a 16-bit console app
body: <p>I would like to be able to call <code>OutputDebugString</code> from a Turbo Pascal 7.0 console mode program.  The host PC is running Windows98, which as far as I can tell supports <code>OutputDebugString</code>.  I can't find any header files that declare the entry point <em>and</em> are compilable with TPC or BPC, however.</p>
  
  <p>The SysInternals utility DebugView can <em>display</em> the debug messages from a Win16 system, so I believe that end of it is sorted.  According to the SysInternals docs: </p>
  
  <pre><code>DebugView Capture
  Under Windows 95, 98, and Me DebugView will capture output from the following sources:
  
      Win32       OutputDebugString
      Win16       OutputDebugString
      Kernel-mode Out_Debug_String
      Kernel-mode _Debug_Printf_Service
  </code></pre>
  
  <p>I've searched the TP7 documentation, and the string <code>dll</code> doesn't appear anywhere. 
   Can anyone advise how to call <code>OutputDebugString</code>, or if it is even possible?</p>