开发者

How to create prompts/notications to the user of an error in Windows Service app?

开发者 https://www.devze.com 2023-03-03 10:38 出处:网络
I am creating a Windows Service app that I would like to have programmatically tell the user that an error has occurred and give hints to the user to correct the error. I 开发者_运维知识库was wonderin

I am creating a Windows Service app that I would like to have programmatically tell the user that an error has occurred and give hints to the user to correct the error. I 开发者_运维知识库was wondering if anyone knows how to do this? The Windows service app uses an odbc connection and datareader to connect to an MS Access database and an Oracle table, so there are the probable errors that I would be handling with those, I just want to make the user aware of them if/when they occur.


You could write details of the error to an event log or database tables and notify the user via email.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号