hello and trace
I''m after a nice function to dump info in a text file in order to trace whatever I wish from my program (unless there is something built into VCpp, (I saw some things on the ''net about a Trace function but it seems to be part of MFC...).)
Since I suspect this is a really ubiquitous generic sort of thing that most programmers must use I wondered if anyone could point me in the right direction?
Thanks!
C : fopen, fprintf and the other "f" functions
C++ : fstream classes (ofstream in this case)
C++ : fstream classes (ofstream in this case)
"Debugging is twice as hard as writing the code in the first place. Therefore, if you write the code as cleverly as possible, you are, by definition, not smart enough to debug it." — Brian W. Kernighan
If I''m not mistaken, Trace is a wrapper for OutputDebugString. There might be suitable code in the reference section. Dean Harding has a nifty multi-threaded logging library you might want to check out http://www.codeka.com/
"I thought what I'd do was, I'd pretend I was one of those deaf-mutes." - the Laughing Man
This topic is closed to new replies.
Advertisement
Popular Topics
Advertisement