Click here to Skip to main content
15,911,306 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
AnswerRe: CString casted to CONST BYTE* - Is that safe? Pin
Joaquín M López Muñoz8-May-02 21:14
Joaquín M López Muñoz8-May-02 21:14 
GeneralRe: CString casted to CONST BYTE* - Is that safe? Pin
Nish Nishant8-May-02 21:17
sitebuilderNish Nishant8-May-02 21:17 
GeneralRe: CString casted to CONST BYTE* - Is that safe? Pin
Jonathan Craig9-May-02 3:27
Jonathan Craig9-May-02 3:27 
GeneralRe: CString casted to CONST BYTE* - Is that safe? Pin
Nish Nishant9-May-02 3:39
sitebuilderNish Nishant9-May-02 3:39 
GeneralUsing Win 2K Event Viewer are an App event viewer Pin
niverson8-May-02 19:41
niverson8-May-02 19:41 
GeneralRe: Using Win 2K Event Viewer are an App event viewer Pin
Mike Nordell9-May-02 20:55
Mike Nordell9-May-02 20:55 
GeneralRe: Using Win 2K Event Viewer are an App event viewer Pin
niverson10-May-02 4:41
niverson10-May-02 4:41 
GeneralRe: Using Win 2K Event Viewer are an App event viewer Pin
Mike Nordell10-May-02 15:51
Mike Nordell10-May-02 15:51 
niverson wrote:
I have tried #define MY_LOGGER_REG_PATH "SYSTEM\\CurrentControlSet\\Services\\EventLog\\Application\\Logger" and I still get the same description

That is however how it's intended to be used. You should usually not add any keys to the Eventlog key (since that in fact is creating a new event log!), only its three existing subkeys.

What might be a problem for you, is that according to documentatin the EventMessageFile value must be of type REG_EXPAND_SZ. From your code it seems you're using a plain REG_SZ. This probably isn't a problem in your case since you're using hard-coded paths, but when given the choice to do it "right". Smile | :)

Another thing to look out for is that (again if my memory serves me) is that you need to add the value ParameterMessageFile (also REG_EXPAND_SZ) for event messages with replacement values. I think this is your current problem.
GeneralRe: Using Win 2K Event Viewer are an App event viewer Pin
niverson13-May-02 4:21
niverson13-May-02 4:21 
GeneralCan't use the CMenu options in the OnPaint under VC++ 7 Pin
MaTrIX2k28-May-02 19:38
MaTrIX2k28-May-02 19:38 
GeneralRe: Can't use the CMenu options in the OnPaint under VC++ 7 Pin
Nish Nishant8-May-02 20:05
sitebuilderNish Nishant8-May-02 20:05 
GeneralSaving COleDateTime To Access using CRecordset Pin
Komtiki8-May-02 19:11
Komtiki8-May-02 19:11 
GeneralQuestion about viewing memory address. Pin
Maxwell Chen8-May-02 18:56
Maxwell Chen8-May-02 18:56 
GeneralRe: Question about viewing memory address. Pin
Nish Nishant8-May-02 20:03
sitebuilderNish Nishant8-May-02 20:03 
GeneralRe: Question about viewing memory address. Pin
Maxwell Chen9-May-02 0:53
Maxwell Chen9-May-02 0:53 
Questionhow to load a Dll in an ATL COM Server Pin
GooGoo8-May-02 18:39
GooGoo8-May-02 18:39 
AnswerRe: how to load a Dll in an ATL COM Server Pin
Ollie8-May-02 23:14
Ollie8-May-02 23:14 
GeneralMFC Extension DLL Problems Pin
Tony Fontenot8-May-02 17:51
Tony Fontenot8-May-02 17:51 
GeneralRe: MFC Extension DLL Problems Pin
Tony Fontenot8-May-02 18:12
Tony Fontenot8-May-02 18:12 
QuestionHow do I make this Unicode? Pin
Matt Newman8-May-02 17:08
Matt Newman8-May-02 17:08 
AnswerRe: How do I make this Unicode? Pin
Michael Dunn8-May-02 17:21
sitebuilderMichael Dunn8-May-02 17:21 
GeneralRe: How do I make this Unicode? Pin
Matt Newman9-May-02 11:26
Matt Newman9-May-02 11:26 
GeneralRe: How do I make this Unicode? Pin
Michael Dunn9-May-02 16:39
sitebuilderMichael Dunn9-May-02 16:39 
GeneralRe: How do I make this Unicode? Pin
Matt Newman14-May-02 15:26
Matt Newman14-May-02 15:26 
AnswerRe: How do I make this Unicode? Pin
Paul M Watt8-May-02 17:24
mentorPaul M Watt8-May-02 17:24 

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.