Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VB6 Event Log Article with examples?

Posted on 2003-11-04
5
Medium Priority
?
495 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
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 1000 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

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

664 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