Solved

VB6 Event Log Article with examples?

Posted on 2003-11-04
5
449 Views
Last Modified: 2010-05-01
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
Comment
Question by:molar
  • 2
  • 2
5 Comments
 
LVL 48

Expert Comment

by:AlexFM
Comment Utility
0
 
LVL 48

Expert Comment

by:AlexFM
Comment Utility
0
 
LVL 2

Author Comment

by:molar
Comment Utility
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
 
LVL 28

Accepted Solution

by:
AzraSound earned 250 total points
Comment Utility
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
 
LVL 2

Author Comment

by:molar
Comment Utility
Now I get it.

Thanks

0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

728 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now