Introduction
When your program development is at a hault, you need some help to find out where your errors are, and a smart way is to debug your code, however sometimes your code can be large and it only fails sometimes. What you need is a log of Errors which you know are real errors. Instead of logging into a flat file and then loose it, you can log to the windows service EventLog.
CReportInEventLog class is a simple way of handling writting to the EventLog service.