OutputDebugString
From HashVB
Revision as of 23:34, 27 April 2006 by Spammer-1146181270 (Talk)
OutputDebugString is used to do pretty much what it says. It will send a string to any debugging utilities that are running like DebugView from SysInternals.
Declaration
Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (ByVal lpOutputString As String)
Parameters
This only takes one parameter, the string to output. This will be passed as it is to the viewer so it is normally a good idea to append vbCrLf to the end of the string.
Sample usage
OutputDebugString Message & vbCrLf
See also