Click here to Skip to main content
16,004,991 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: problem: printing multiple pages Pin
kasreng16-Jun-00 11:28
kasreng16-Jun-00 11:28 
Questionmaximum number of objects? Pin
derhackler15-Jun-00 6:43
derhackler15-Jun-00 6:43 
GeneralOnFileNew: Maximize child window Pin
Christoph Rupp15-Jun-00 4:47
sussChristoph Rupp15-Jun-00 4:47 
GeneralRe: OnFileNew: Maximize child window Pin
Uwe Keim15-Jun-00 8:11
sitebuilderUwe Keim15-Jun-00 8:11 
GeneralRe: OnFileNew: Maximize child window Pin
Petrica15-Jun-00 22:47
Petrica15-Jun-00 22:47 
GeneralRe: OnFileNew: Maximize child window Pin
Christoph Rupp16-Jun-00 3:59
sussChristoph Rupp16-Jun-00 3:59 
QuestionNT Service Event Messages. Where do they go? Pin
Chris Meech15-Jun-00 3:39
Chris Meech15-Jun-00 3:39 
AnswerRe: NT Service Event Messages. Where do they go? Pin
Tim Deveaux15-Jun-00 6:52
Tim Deveaux15-Jun-00 6:52 
You need to create an registry entry with the appname you use in the call to register the message.

HKEY_CURRENT_MACHINE(?)\SYSTEM\CurrentControlSet\Services \Eventlog\Application\myprog (i think)

The myprog subkey will contain several entries, one of which is the path to the file containing the resource format strings associated with the messages you are writing. In your case, this would be your service, but it could also be (and often is) a separate resource DLL.

When you invoke details on a message in the event viewer, it looks in the myprog key and tries to find the resource file specified so it can format the message for view.

There's an article on "EventLog Service Entries" in the MDSN that helps a bit - check the other reg entries to get an idea of what is needed.


AnswerThe .BIN file has be in the same directory as the .EXE Pin
Chris Meech15-Jun-00 7:07
Chris Meech15-Jun-00 7:07 
AnswerRe: NT Service Event Messages. Where do they go? Pin
Matthias16-Jun-00 3:28
Matthias16-Jun-00 3:28 
GeneralOnAmbientProperty in WTL Dialog Pin
tomer15-Jun-00 2:01
tomer15-Jun-00 2:01 
GeneralStretch blit Pin
Harry15-Jun-00 0:39
Harry15-Jun-00 0:39 
GeneralRe: Stretch blit Pin
Christoph Rupp15-Jun-00 4:38
sussChristoph Rupp15-Jun-00 4:38 
GeneralC++ Syntax Pin
Jeremy Davis14-Jun-00 22:27
Jeremy Davis14-Jun-00 22:27 
GeneralRe: C++ Syntax Pin
Mike Dunn14-Jun-00 22:47
Mike Dunn14-Jun-00 22:47 
GeneralHELP with my com Pin
Member 83546714-Jun-00 16:39
Member 83546714-Jun-00 16:39 
GeneralRe: HELP with my com Pin
Alfadhly15-Jun-00 10:24
sussAlfadhly15-Jun-00 10:24 
GeneralMany grate free tutorials in visual c++ on line Pin
alona14-Jun-00 12:00
alona14-Jun-00 12:00 
GeneralRe: Many grate free tutorials in visual c++ on line Pin
SpiderMan14-Jun-00 12:48
SpiderMan14-Jun-00 12:48 
Generalfree courses on line Pin
alona14-Jun-00 11:57
alona14-Jun-00 11:57 
GeneralRe: free courses on line Pin
Brian Hart25-Jun-00 13:05
Brian Hart25-Jun-00 13:05 
GeneralExecuting an exe Pin
Member 1176625714-Jun-00 7:36
Member 1176625714-Jun-00 7:36 
GeneralRe: Executing an exe Pin
GeVanCo14-Jun-00 8:19
GeVanCo14-Jun-00 8:19 
GeneralRe: Executing an exe Pin
Member 1176625714-Jun-00 8:46
Member 1176625714-Jun-00 8:46 
QuestionHow do I change the font color in CRichEditView? Pin
Mike Newberry14-Jun-00 6:26
sussMike Newberry14-Jun-00 6:26 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.