Difference between revisions of "OutputDebugString"

From HashVB
Jump to: navigation, search
 
m (Tidied the section headers)
Line 1: Line 1:
 +
[[Category:API_Calls]]
 
OutputDebugString is used to do pretty much what it says. It will send a string to any debugging utilities that are running like [http://www.sysinternals.com/Utilities/DebugView.html DebugView] from [http://www.sysinternals.com/ SysInternals].
 
OutputDebugString is used to do pretty much what it says. It will send a string to any debugging utilities that are running like [http://www.sysinternals.com/Utilities/DebugView.html DebugView] from [http://www.sysinternals.com/ SysInternals].
  
===Declaration===
+
=== Declaration ===
 
+
 
  Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (ByVal lpOutputString As String)
 
  Declare Sub OutputDebugString Lib "kernel32" Alias "OutputDebugStringA" (ByVal lpOutputString As String)
  
===Parameters===
+
=== 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.
 
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===
+
=== Sample usage ===
 
+
 
  OutputDebugString Message & vbCrLf
 
  OutputDebugString Message & vbCrLf
  
===See also===
+
=== See also ===
 
+
 
* [http://www.earlsoft.co.uk/api/call.php?name=OutputDebugString Earlsoft API page]
 
* [http://www.earlsoft.co.uk/api/call.php?name=OutputDebugString Earlsoft API page]
 
[[Category:API_Calls]]
 

Revision as of 12:55, 10 January 2006

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