Click here to Skip to main content
15,891,976 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
Generalcursor position Pin
28-Jun-01 1:11
suss28-Jun-01 1:11 
GeneralRe: cursor position Pin
Anders Molin28-Jun-01 3:01
professionalAnders Molin28-Jun-01 3:01 
GeneralOLE Drag Drop in an ActiveX control Pin
28-Jun-01 0:52
suss28-Jun-01 0:52 
GeneralMulti page TIF Pin
28-Jun-01 0:30
suss28-Jun-01 0:30 
GeneralRe: Multi page TIF Pin
PhoenixHawke23-Aug-07 8:57
PhoenixHawke23-Aug-07 8:57 
QuestionHow do i implement a context menu and a Right Mouse button Double click at the same time? Pin
28-Jun-01 0:27
suss28-Jun-01 0:27 
AnswerRe: How do i implement a context menu and a Right Mouse button Double click at the same time? Pin
Tomasz Sowinski28-Jun-01 0:39
Tomasz Sowinski28-Jun-01 0:39 
GeneralAPI question - dealing with messages Pin
Gennady Oster28-Jun-01 0:22
Gennady Oster28-Jun-01 0:22 
Hi!
I've posted this question in the "Suggestion" board, because there is no API discussion, and was advised to post it to C++ board. Sorry for long story.

I've created the NT service that in the case of error not only register event in the Application EventLog, but also may send this event by mail to the predefined SMTP address. In the configuration applet for this service I'd like to let the user to select, what events he/she wants to receive in mail. So I'd like to extract the list of events from the event source, registered in HKLM\SYSTEM\CurrentControlSet\Services\Eventlog\Application\EventMessageFile.
I can extract the single event with FormatMessage, if I know the ID. But if I don't? The question is: How I can enumerate the events in the EventMessageFile? Sure I can do it "manualy" analyzing the message file structure. But I prefer something more safe in the case, they in MS will change the message file structure. And using API (if there is any) will save me from unskilled labour. I don't afraid to do such a work, but if I can avoid it ...

Thanks in advance.
Regards,
Gennady


GeneralRe: API question - dealing with messages Pin
Tomasz Sowinski28-Jun-01 0:48
Tomasz Sowinski28-Jun-01 0:48 
GeneralRe: API question - dealing with messages Pin
Gennady Oster28-Jun-01 1:22
Gennady Oster28-Jun-01 1:22 
Generalcout<< Pin
Rejeesh28-Jun-01 0:00
Rejeesh28-Jun-01 0:00 
GeneralRe: cout<< Pin
markkuk28-Jun-01 1:05
markkuk28-Jun-01 1:05 
GeneralRe: cout<< Pin
Rejeesh28-Jun-01 1:33
Rejeesh28-Jun-01 1:33 
GeneralRe: cout<< Pin
Alvaro Mendez28-Jun-01 5:26
Alvaro Mendez28-Jun-01 5:26 
GeneralRe: cout<< Pin
Mike Nordell30-Jun-01 11:49
Mike Nordell30-Jun-01 11:49 
QuestionAnybody knows why this compiles ? Pin
27-Jun-01 23:58
suss27-Jun-01 23:58 
AnswerRe: Anybody knows why this compiles ? Pin
Tomasz Sowinski28-Jun-01 0:12
Tomasz Sowinski28-Jun-01 0:12 
GeneralRe: Anybody knows why this compiles ? Pin
28-Jun-01 0:16
suss28-Jun-01 0:16 
GeneralVery silly problem from newbie! Pin
27-Jun-01 23:22
suss27-Jun-01 23:22 
GeneralRe: Very silly problem from newbie! Pin
Christian Graus27-Jun-01 23:24
protectorChristian Graus27-Jun-01 23:24 
Questionm_hinstance of a service? Pin
Joan M27-Jun-01 23:19
professionalJoan M27-Jun-01 23:19 
Questionhow to save jpg/bmp ? Pin
27-Jun-01 22:30
suss27-Jun-01 22:30 
AnswerRe: how to save jpg/bmp ? Pin
Christian Graus27-Jun-01 23:26
protectorChristian Graus27-Jun-01 23:26 
QuestionHow to make a window appear active, while a modal dialog is open. Pin
John Jensen27-Jun-01 21:54
John Jensen27-Jun-01 21:54 
AnswerRe: How to make a window appear active, while a modal dialog is open. Pin
Tomasz Sowinski27-Jun-01 23:46
Tomasz Sowinski27-Jun-01 23:46 

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.