Real'sHowTo AddThis Feed Button
Custom Search

Use Windows Debugging APITag(s): WinAPI/Registry

Windows provides API to debug applications and PB can easily send messages to the debugging console
[local external routine declaration]
SUBROUTINE OutputDebugStringA (String lpszOutputString) &
   LIBRARY "kernel32.dll"
// FOR PB10 :
//   SUBROUTINE OutputDebugStringA (String lpszOutputString) &
//   LIBRARY "kernel32.dll" ALIAS FOR "OutputDebugStringA;Ansi"

// if there is a Windows debugging console opened
// then the time will be displayed
OutputDebugStringA( String(Now(), "hh:mm") ) 

A (free) Windows debugging console can be downloaded from SysInternals (Microsoft) Web site.

See this related HowTo.

blog comments powered by Disqus

If you find this article useful, consider making a small donation
to show your support for this Web site and its content.

Written and compiled by Réal Gagnon ©1998-2015
[ home ]