AllAPI Network - The KPD-Team

 
Allapi Network
 API-Guide
 ApiViewer

 API List

 
API Resources
 Tips & Tricks
 VB Tutorials
 Error Lookup
 
Misc Stuff
 VB examples
 VB Tools
 VB Links
 Top Downloads
 
This Site
 Search Engine
 Contact Form
 

Donate to AllAPI.net

How to Debug a compiled executable?
In the IDE, you often use "Debug.Print ..." to verify
or watch anything, but in the compiled Exe/Dll?
The following simple code will do it (assumed you
have installed the windows clipboard viewer):


Sub DebugClipboard(ByVal Text As Variant)
Dim dummy$
With Clipboard
  dummy = .GetText
  .Clear
  dummy = dummy & vbCrLf & Trim$(Text)
  .SetText dummy
End With
End Sub

Tip submitted by Jürgen Thümmler

 

 


Copyright © 1998-2007, The Mentalis.org Team - Privacy statement
Did you find a bug on this page? Tell us!
This site is located at http://allapi.mentalis.org/