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.
更多内容请看PCdog.com--Windows操作系统安装 Windows常见故障排除 Windows远程桌面的应用专题
