홈 · 개발 참고자료

개발 참고자료

[파워빌더] Use Windows Debugging API

작성자
관리자
작성일
2016-10-16
조회
10893
분류
파워빌더
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"



[powerscript]
// 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.