Event Log: Writing to the NT Event Log 
Author Message
 Event Log: Writing to the NT Event Log

I needed to write to the NT event log using VB5.

Due to the VB App object gives me the capabilitie to do this, I tried, and i
found it doens't worked.

Following the instructions given by an MS TechNet article, I used an
alternative way to get this using some API's.

The sample worked fine, and I made a class to make all this easily.

My question is:

When I write into the log, all looks good, except the message itself.
Instead of my message , the following statemente appears:

The description for Event ID ( myEventNumber ) in Source ( myApp ) could not
be found. It contains the following insertion string(s): MyMessage.

I mean, the parameters works well, and my message appears, but after all
this stuff. I don't know the reason who makes this message appear

Any help?

Fran



Tue, 12 Dec 2000 03:00:00 GMT  
 Event Log: Writing to the NT Event Log

I have seen this before... make sure you are logged in with administrative
priveledges.  Otherwise, I get what you see...

Quote:

>I needed to write to the NT event log using VB5.

>Due to the VB App object gives me the capabilitie to do this, I tried, and
i
>found it doens't worked.

>Following the instructions given by an MS TechNet article, I used an
>alternative way to get this using some API's.

>The sample worked fine, and I made a class to make all this easily.

>My question is:

>When I write into the log, all looks good, except the message itself.
>Instead of my message , the following statemente appears:

>The description for Event ID ( myEventNumber ) in Source ( myApp ) could
not
>be found. It contains the following insertion string(s): MyMessage.

>I mean, the parameters works well, and my message appears, but after all
>this stuff. I don't know the reason who makes this message appear

>Any help?

>Fran



Tue, 12 Dec 2000 03:00:00 GMT  
 Event Log: Writing to the NT Event Log

In order for an application to read back your message in a formatted state
you need to supply a binary containing the formatted string to use.  You
need to understand how to read the event log for all this to make sense.
VBPJ covered both reading and writing to the log in a two part column last
fall(?).



Quote:
> I needed to write to the NT event log using VB5.

> Due to the VB App object gives me the capabilitie to do this, I tried,
and i
> found it doens't worked.

> Following the instructions given by an MS TechNet article, I used an
> alternative way to get this using some API's.

> The sample worked fine, and I made a class to make all this easily.

> My question is:

> When I write into the log, all looks good, except the message itself.
> Instead of my message , the following statemente appears:

> The description for Event ID ( myEventNumber ) in Source ( myApp ) could
not
> be found. It contains the following insertion string(s): MyMessage.

> I mean, the parameters works well, and my message appears, but after all
> this stuff. I don't know the reason who makes this message appear

> Any help?

> Fran



Fri, 15 Dec 2000 03:00:00 GMT  
 
 [ 3 post ] 

 Relevant Pages 

1. Making an Event Log Message File in VB (NOT WRITING TO THE EVENT LOG)

2. Logging events to NT Event Log from VB5

3. Does anyone know how to write an event into NT Event Log

4. Writing events to the NT Event Log

5. Write events to the event log ?

6. Write to NT event log

7. Writing to the Windows NT Event Log - Example please

8. Write NT Event Log in VB 5

9. Write to NT's Event Log

10. Writing to NT Event Logs

11. Write errors at Windows Nt Event Log

12. Write error at Windows NT Event Log

 

 
Powered by phpBB® Forum Software