|
Thanks for the info.
I read the CDebugPrintf source, it doesn't embed __FILE__/__LINE__ into log lines. My conclusion is that only Macros with a variable number of arguments can do the job. That is, only C99-compatible c++ compilers. Actually I have implemented such a logger with GCC(what a splendid compiler!)
I have tested Intel c++ compiler v8.1, it's a pity that its "/Qc99" option only works with pure C programs, neither c++ programs nor c/c++ mixed programs.
http://softwareforums.intel.com/ids/board/message?board.id=16&message.id=1643#M1643
I will try to see whether GCC for Windows can compile my MFC program.
__________________
AKA Solomon/blowfish.
Last edited by WhoCares; 01-06-2005 at 13:29.
|