Yah, I guess I should point out I ran that code in a WM_PAINT
handler for a dialog to make sure it worked. (TDM's code actually
had some small errors)
Also the following includes are needed in the header for the
templates and string
#include <string>
#include <sstream>
#include <iostream>
#include <iomanip>
I kinda had the feeling CString would be used so I was a bit sloppy
(I guess I just wanted to show how to do it right (with the standard) and definitely not with new char[].)
Wakeup in the morning and kick the day in the teeth!! Or something like that.
"i don't want to write leak free code or most efficient code, like others traditional (so called expert) coders do."