Solved

VB6 Event Log Article with examples?

Posted on 2003-11-04
5
471 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
ID: 9677228
0
 
LVL 48

Expert Comment

by:AlexFM
ID: 9677232
0
 
LVL 2

Author Comment

by:molar
ID: 9677343
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
ID: 9679121
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
ID: 9679549
Now I get it.

Thanks

0

Featured Post

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

786 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