VB6 Event Log Article with examples?

I know I can use App.Logevent, but I guess like most programmers, I find it too limiting. Does anyone know of a good article explaining how to get at the NT event log from VB using APIs? I have read something about event sources but I don't understand it.

I am especially interested in finding a way to properly fill the event log detail description.
Who is Participating?
This is a Delphi article, but it goes into what is necessary to create your own descriptions:
molarAuthor Commented:
Thanks for the links above Alex. In both of the examples above, the events are logged but don't allow me to write any text to the event description. The description field in both cases  produces text along the lines of that below.

The description for Event ID ( 1003 ) in Source ( Project1 ) 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. The following information is part of the event: Error from Project1.

How do I go about replacing this with a more meaningful message?
molarAuthor Commented:
Now I get it.


Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.