I would like to be able to call OutputDebugString from a Turbo Pascal 7.0 console mode program. The host PC is running Windows98, which as far as I can tell supports OutputDebugString. I can't find any header files that declare the entry point and are compilable with TPC or BPC, however.
The SysInternals utility DebugView can display the debug messages from a Win16 system, so I believe that end of it is sorted. According to the SysInternals docs:
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
I've searched the TP7 documentation, and the string dll doesn't appear anywhere.
Can anyone advise how to call OutputDebugString, or if it is even possible?
According to this it should be in Kernel32.dll (Winbase.h / Windows.h.).