Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 499
  • Last Modified:

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.
0
molar
Asked:
molar
  • 2
  • 2
1 Solution
 
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?
0
 
AzraSoundCommented:
This is a Delphi article, but it goes into what is necessary to create your own descriptions:
http://www.hardcoredelphi.com/DD/DDmag.nsf/0/9E27FFF5B9FC7C32852568F5004B1605
0
 
molarAuthor Commented:
Now I get it.

Thanks

0

Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now