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

C / C++ / MFC

 
GeneralRe: is there TRACE() like sorce code for release mode Pin
9ine2-May-06 1:28
9ine2-May-06 1:28 
AnswerRe: is there TRACE() like sorce code for release mode Pin
Nibu babu thomas2-May-06 1:33
Nibu babu thomas2-May-06 1:33 
AnswerRe: is there TRACE() like sorce code for release mode Pin
kakan2-May-06 1:56
professionalkakan2-May-06 1:56 
GeneralRe: is there TRACE() like sorce code for release mode Pin
9ine2-May-06 2:35
9ine2-May-06 2:35 
GeneralRe: is there TRACE() like sorce code for release mode Pin
kakan2-May-06 3:02
professionalkakan2-May-06 3:02 
GeneralRe: is there TRACE() like sorce code for release mode Pin
9ine2-May-06 4:48
9ine2-May-06 4:48 
GeneralRe: is there TRACE() like sorce code for release mode Pin
9ine2-May-06 5:32
9ine2-May-06 5:32 
GeneralRe: is there TRACE() like sorce code for release mode Pin
Rick York2-May-06 8:47
mveRick York2-May-06 8:47 
Actually this part of your idea is good - I am not so sure about the implementation though.

I would take a look at TRACE's implementation. It takes a while to wade through but you can learn a bit along the way. It eventually boils down to calling _snprintf (or _sntprintf for TCHAR usage) into a text buffer (1024 bytes long) and then calling OutputDebugString in AtlDebugAPI.cpp around line 306. OutputDebugString works in release and debug mode as long as a debugger is running.

What I am getting at is in release builds TRACE is compiled to no-ops so you can implement your own trace statements that do essentially the same thing. If you do it right you can disable them all by commenting out a few lines and recompiling.

Good luck.


GeneralRe: is there TRACE() like sorce code for release mode Pin
kakan2-May-06 19:35
professionalkakan2-May-06 19:35 
AnswerRe: is there TRACE() like sorce code for release mode Pin
El Corazon2-May-06 15:25
El Corazon2-May-06 15:25 
Questioncommand line Pin
anithavikram(manisha)2-May-06 1:04
anithavikram(manisha)2-May-06 1:04 
AnswerRe: command line Pin
Stephen Hewitt2-May-06 1:16
Stephen Hewitt2-May-06 1:16 
GeneralRe: command line Pin
anithavikram(manisha)2-May-06 1:34
anithavikram(manisha)2-May-06 1:34 
GeneralRe: command line Pin
Stephen Hewitt2-May-06 13:49
Stephen Hewitt2-May-06 13:49 
GeneralRe: command line Pin
anithavikram(manisha)2-May-06 19:04
anithavikram(manisha)2-May-06 19:04 
AnswerRe: command line Pin
Cedric Moonen2-May-06 1:16
Cedric Moonen2-May-06 1:16 
AnswerRe: command line Pin
Rick York2-May-06 8:54
mveRick York2-May-06 8:54 
Questionmfc source Pin
big_denny_2002-May-06 0:47
big_denny_2002-May-06 0:47 
AnswerRe: mfc source Pin
Russell'2-May-06 1:01
Russell'2-May-06 1:01 
GeneralRe: mfc source Pin
big_denny_2002-May-06 2:00
big_denny_2002-May-06 2:00 
GeneralRe: mfc source Pin
toxcct2-May-06 2:13
toxcct2-May-06 2:13 
GeneralRe: mfc source Pin
Russell'2-May-06 2:27
Russell'2-May-06 2:27 
AnswerRe: mfc source Pin
Nishad S2-May-06 1:05
Nishad S2-May-06 1:05 
AnswerRe: mfc source Pin
_AnsHUMAN_ 2-May-06 1:15
_AnsHUMAN_ 2-May-06 1:15 
QuestionHow to get the MDI child window Pin
Sarvan AL2-May-06 0:32
Sarvan AL2-May-06 0:32 

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.