I'm making a function that returns a formated String.
my best attempt is shown but it does not work.
I think it does not expand out the "args" when it is passed in.
is there a way to make CString::Format expand out the Arguments List?
p.s. if I should be using sprintf or something else like that, let me
know also.
my DevEnv is MS VC++ 6
CString GetFormatedString(LPCTSTR fmt,...)
{
va_list args;
CString msg;
va_start(args, fmt);
msg.Format(fmt, args);
va_end(args);
return msg;
}
cheers and thanks