Article View: borland.public.cppbuilder.nativeapi
Article #7588Re: Write text to event viewer
From: Remy Lebeau (TeamB)
Date: Thu, 13 Jan 2005 09:03
Date: Thu, 13 Jan 2005 09:03
31 lines
2022 bytes
2022 bytes
"Sara T." <sarana@infoquest.co.th> wrote in message
news:41e602ad@newsgroups.borland.com...
> I have use function LogMessage() in service application to write
> some information text on event viewer but I found some error in
> description like this:
That is because TService does not support setting up message descriptions.
You have to do that manually yourself by adding extra string tables to your
program's resources, as well as additional Registry values, and then
reference those string table entries when calling LogMessage(). Please read
the following articles:
Event Sources
http://msdn.microsoft.com/library/en-us/debug/base/event_sources.asp
Event Categories
http://msdn.microsoft.com/library/en-us/debug/base/event_categories.asp
Event Identifiers
http://msdn.microsoft.com/library/en-us/debug/base/event_identifiers.asp
Message Files
http://msdn.microsoft.com/library/en-us/debug/base/message_files.asp
ReportEvent
http://msdn.microsoft.com/library/en-us/debug/base/reportevent.asp
Gambit
Technical Details
Message-ID:
<41e638fd$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<41e5fbca@newsgroups.borland.com> <41e602ad@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 10cc67,544baeda84e7e350 X-Google-Attributes: gid10cc67,public X-Google-Language: ENGLISH,ASCII-7-bit From: "Remy Lebeau \(TeamB\)" <no.spam@no.spam.com> Newsgroups: borland.public.cppbuilder.nativeapi References: <41e5fbca@newsgroups.borland.com> <41e602ad@newsgroups.borland.com> Subject: Re: Write text to event viewer Date: Thu, 13 Jan 2005 01:03:42 -0800 Lines: 33 X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2800.1409 X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1409 NNTP-Posting-Host: 68.69.17.41 Message-ID: <41e638fd$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1105606909 68.69.17.41 (13 Jan 2005 01:01:49 -0800) Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!fr.ip.ndsoftware.net!grolier!194.74.65.66.MISMATCH!news-peer0-test!news-peer-test!btnet!newsfeed.bt.es!caladan.landsraad.net!newsgroups.borland.com!not-for-mail