Tag: OutputDebugString预览模式: 普通 | 列表

Delphi中用OutputDebugString显示调试信息

今天在看《ISAPI Filter 限制 IIS 多线程访问》源码时,发现多处使用了 

 {$IFDEF DEBUG}
  OutputDebugString('Call IpIncrement ...');
  OutputDebugString(PChar('IP in IpIncrement  ...'+IP));
  {$ENDIF}

这样的语法,看意思是输出调试信息,跟踪定义到了widows单元,有这么几个定义

procedure OutputDebugString; external kernel32 name 'OutputDebugStringA';
procedure OutputDebugStringA; external kernel32 name 'OutputDebugStringA';
procedure OutputDebugStringW; external kernel32 name 'OutputDebugStringW';

查看更多...

Tags: Delphi中 OutputDebugString 调试

分类:Delphi | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 2738