VBGood网站全文搜索 Google

首页 - 经验之谈 - 写Windows NT事件日志
发表评论(0)作者:不详, 平台:VB6.0+Win98, 阅读:10306, 日期:2000-11-07
Writing to the Windows NT event log

Windows applications typically write to the NT event log to provide the user with useful information. In VB5/6, the App object now provides methods to make writing to the event log in Windows NT a snap:

注释:-- Start Event Logging
Call App.StartLogging("", vbLogToNT)

注释:-- Log Events to NT
Call App.LogEvent("Info", vbLogEventTypeInformation)
Call App.LogEvent("Error", vbLogEventTypeError)
Call App.LogEvent("Warning", vbLogEventTypeWarning)

Check out the Knowledge Base article App.LogEvent Only Logs in Compiled Applications for more information.