事件记录中的问题 [英] Issue in Event logging

查看:166
本文介绍了事件记录中的问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用VB6中的ReportEvent API对应用程序进行了编码,以将其报告为事件日志错误.一切正常,但是我想删除(或更好地控制)放置在事件描述中的其他文本,例如:
Quote:
找不到源(myApp)中事件ID(6)的描述.本地计算机可能没有必要的注册表信息或消息DLL文件来显示来自远程计算机的消息.您可能可以使用/AUXSOURCE =标志来检索此描述.有关详细信息,请参见帮助和支持".


谢谢
PG

I have coded my application to report it is errors to the event log, using the ReportEvent API in VB6. This all works fine, however I would like to remove (or have finer control over) the additional text placed in the event description, eg:
Quote:
The description for Event ID ( 6 ) in Source ( myApp ) cannot be found. The local computer may not have the necessary registry information or message DLL files to display messages from a remote computer. You may be able to use the /AUXSOURCE= flag to retrieve this description; see Help and Support for details.


Thanks
PG

推荐答案

请参见 http://msdn .microsoft.com/en-us/library/aa363661.aspx [ ^ ]
里面有一个提示.
不久,您必须为您的应用程序日志创建注册表项.
See http://msdn.microsoft.com/en-us/library/aa363661.aspx[^]
A hint is in there.
Shortly, you must make the registry key for your application log.


这篇关于事件记录中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆