|Top Previous Next|
I use a class called CLogger. I use it to have a printf type function to a log file. Here is an example of its use:
gLogger.Printf(ekLogMsg, L"Template file is <%s>\n", CString(sTemplate));
In your own programs you can replace it with TRACE or maybe your own logger.
I don't include its source here because it uses other functions in other libraries, and it all gets too complicated.
Text, images and diagrams © 2021 Owen F. Ransen. All rights reserved. (But copy the source code as much as you want!)