Click here to Skip to main content
15,892,809 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: dynamic memeory aloocation question Pin
Roland Pibinger15-Jan-06 5:42
Roland Pibinger15-Jan-06 5:42 
GeneralRe: dynamic memeory aloocation question Pin
Nish Nishant15-Jan-06 6:08
sitebuilderNish Nishant15-Jan-06 6:08 
AnswerRe: dynamic memeory aloocation question Pin
Roland Pibinger15-Jan-06 5:34
Roland Pibinger15-Jan-06 5:34 
QuestionDirectX Pin
AJ12314-Jan-06 22:13
AJ12314-Jan-06 22:13 
AnswerRe: DirectX Pin
CPP_Student15-Jan-06 20:23
CPP_Student15-Jan-06 20:23 
Questionlogger performance Pin
Chintoo72314-Jan-06 22:07
Chintoo72314-Jan-06 22:07 
QuestionRe: logger performance Pin
Roland Pibinger15-Jan-06 4:00
Roland Pibinger15-Jan-06 4:00 
AnswerRe: logger performance Pin
Chintoo72315-Jan-06 4:38
Chintoo72315-Jan-06 4:38 
The arguments are not always evaluated. The LOGX imacro is implemented like this:
<br />
void  _log(const char *format_str, ...);<br />
#define LOG1 if (logleve >= 1) _log<br />
#define LOG2 if (logleve >= 2) _log<br />
#define LOG3 if (logleve >= 3) _log<br />


I have not measured the number of log statements per unit of time, I am yet to add timestamps to the log messages. I havent added it just to avoid additional CPU cycles on the timestamp formatting. For the debugging to be fruitful I have to set the log level to 5 which outputs maximum number of log messages. I remember with log4j there was a way to redirect the log messages to another message, that is what makes me curious if that is going to help me here.

thanks!
GeneralRe: logger performance Pin
Roland Pibinger15-Jan-06 5:55
Roland Pibinger15-Jan-06 5:55 
GeneralRe: logger performance Pin
Chintoo72315-Jan-06 15:38
Chintoo72315-Jan-06 15:38 
AnswerRe: logger performance Pin
cmk15-Jan-06 18:46
cmk15-Jan-06 18:46 
AnswerRe: logger performance Pin
kakan15-Jan-06 20:08
professionalkakan15-Jan-06 20:08 
QuestionSimulating mouse clicks on SysDateTimePick32 control Pin
Still learning how to code14-Jan-06 21:40
Still learning how to code14-Jan-06 21:40 
AnswerRe: Simulating mouse clicks on SysDateTimePick32 control Pin
Gary R. Wheeler15-Jan-06 4:23
Gary R. Wheeler15-Jan-06 4:23 
GeneralRe: Simulating mouse clicks on SysDateTimePick32 control Pin
Still learning how to code15-Jan-06 22:00
Still learning how to code15-Jan-06 22:00 
GeneralRe: Simulating mouse clicks on SysDateTimePick32 control Pin
Gary R. Wheeler17-Jan-06 16:11
Gary R. Wheeler17-Jan-06 16:11 
Questionhow to draw table? Pin
Ali Tavakol14-Jan-06 21:13
Ali Tavakol14-Jan-06 21:13 
AnswerRe: how to draw table? Pin
includeh1015-Jan-06 3:54
includeh1015-Jan-06 3:54 
GeneralRe: how to draw table? Pin
Ali Tavakol15-Jan-06 20:14
Ali Tavakol15-Jan-06 20:14 
Questionvariable, a simple suggestion to C/C++ beginner Pin
includeh1014-Jan-06 17:13
includeh1014-Jan-06 17:13 
AnswerRe: variable, a simple suggestion to C/C++ beginner Pin
El Corazon14-Jan-06 17:49
El Corazon14-Jan-06 17:49 
GeneralRe: variable, a simple suggestion to C/C++ beginner Pin
Stephen Hewitt14-Jan-06 18:03
Stephen Hewitt14-Jan-06 18:03 
GeneralRe: variable, a simple suggestion to C/C++ beginner Pin
El Corazon14-Jan-06 18:39
El Corazon14-Jan-06 18:39 
GeneralRe: variable, a simple suggestion to C/C++ beginner Pin
Shraddhan22-Jan-06 23:34
Shraddhan22-Jan-06 23:34 
Questionstructure representing file Pin
John Simon14-Jan-06 14:50
John Simon14-Jan-06 14:50 

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.