Click here to Skip to main content
16,006,749 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Performance Pin
sardinka12-Oct-01 3:58
sardinka12-Oct-01 3:58 
GeneralRe: Performance Pin
Carlos Antollini11-Oct-01 11:13
Carlos Antollini11-Oct-01 11:13 
GeneralRe: Performance Pin
Bernhard11-Oct-01 19:57
Bernhard11-Oct-01 19:57 
GeneralProblem with (Farsi) language Pin
Ghasrfakhri11-Oct-01 6:41
Ghasrfakhri11-Oct-01 6:41 
GeneralRe: Problem with (Farsi) language Pin
RoyaEslami26-Dec-11 2:33
RoyaEslami26-Dec-11 2:33 
GeneralMessage compiler and event log. Pin
SuperGeek11-Oct-01 6:11
SuperGeek11-Oct-01 6:11 
GeneralRe: Message compiler and event log. Pin
Carlos Antollini11-Oct-01 7:01
Carlos Antollini11-Oct-01 7:01 
GeneralRe: Message compiler and event log. Pin
SuperGeek11-Oct-01 10:26
SuperGeek11-Oct-01 10:26 
Carlos, I DO have a correct path.

In InitInstance(), this application creates the following registry key in the root of HKEY_LOCAL_MACHINE:
"\SYSTEM\CurrentControlSet\Services\EventLog\Application\<executable filename(without="" ".exe")="">\"

Then, it obtains complete path of its executable(using GetCurrentDirectory()) and then inserts this path under "EventMessageFile" entry in the root of key, specified above.

I tried moving this executable in variety of directories, and every time, the correct home path of executable would be displayed in regedit.

I am lost.
GeneralBTW how to I format the code in a post Pin
Bill Wilson11-Oct-01 6:00
Bill Wilson11-Oct-01 6:00 
GeneralRe: BTW how to I format the code in a post Pin
Jon Hulatt11-Oct-01 6:27
Jon Hulatt11-Oct-01 6:27 
GeneralRe: BTW how to I format the code in a post Pin
Bill Wilson11-Oct-01 8:35
Bill Wilson11-Oct-01 8:35 
QuestionHow do I get the system performance Pin
Bill Wilson11-Oct-01 5:55
Bill Wilson11-Oct-01 5:55 
GeneralDebug Info In Release Build Pin
John M. Drescher11-Oct-01 5:41
John M. Drescher11-Oct-01 5:41 
GeneralRe: Debug Info In Release Build Pin
Tomasz Sowinski11-Oct-01 5:57
Tomasz Sowinski11-Oct-01 5:57 
GeneralPrinting from tray #2 Pin
jerry0davis11-Oct-01 5:20
jerry0davis11-Oct-01 5:20 
GeneralRe: Printing from tray #2 Pin
11-Oct-01 5:49
suss11-Oct-01 5:49 
GeneralHTML View Question Pin
inforix11-Oct-01 5:10
inforix11-Oct-01 5:10 
GeneralRe: HTML View Question Pin
Paolo Messina11-Oct-01 5:40
professionalPaolo Messina11-Oct-01 5:40 
GeneralRe: HTML View Question Pin
inforix11-Oct-01 15:31
inforix11-Oct-01 15:31 
GeneralRe: HTML View Question Pin
Paolo Messina13-Oct-01 0:11
professionalPaolo Messina13-Oct-01 0:11 
GeneralList control and timers Pin
RobJones11-Oct-01 4:45
RobJones11-Oct-01 4:45 
GeneralRe: List control and timers Pin
Bill Wilson11-Oct-01 5:12
Bill Wilson11-Oct-01 5:12 
GeneralDate Conversions Pin
Derek Lakin11-Oct-01 4:22
Derek Lakin11-Oct-01 4:22 
GeneralRe: Date Conversions Pin
Jon Hulatt11-Oct-01 4:40
Jon Hulatt11-Oct-01 4:40 
GeneralRe: Date Conversions Pin
Tomasz Sowinski11-Oct-01 4:46
Tomasz Sowinski11-Oct-01 4: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.