A previous question showed a nice way of printing to a string. The answer involved va_copy:
std::string format (const char *fmt, ...); { va_list ap; va
For Windows, you can simply define va_copy yourself:
#define va_copy(dest, src) (dest = src)