在Delphi中写入事件日志 [英] Writing to the Event Log in Delphi
本文介绍了在Delphi中写入事件日志的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我如何获得一个应用程序以在Delphi IDE(Borland Developer Studio 2006)的事件日志窗口中写入调试文本?
How can I get an application to write debug text to the Event Log window in the Delphi IDE (Borland Developer Studio 2006)?
如何更改颜色
推荐答案
OutputDebugString ('Hello,World');
OutputDebugString('Hello,World');
我认为您可能需要添加Windows进入您的用途列表。据我所知,不能百分百确定...
I think you may need to add Windows to your 'uses' list. Not 100% sure on that...
文字颜色无法更改:这是Delphi IDE的功能,它会添加其他消息进入该窗口以了解线程的启动/停止,DLL的加载/卸载以及它们自己的特定颜色。
The text colour can't be changed as far as I know: It's a feature of the Delphi IDE that it adds additional messages into that window for thread start/stop, DLL load/unload, with their own specific colour.
这篇关于在Delphi中写入事件日志的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文