by Dan East » Mar 18, 2003 @ 4:33pm
Um, I was showing the ease in which string copies, concatenations and UNICODE conversions can be done with CString. If your purpose is to optimize a contrived example then the correct response is:
AfxMessageBox(_T("This is a test"));
CString::Format performs the same functionality of sprintf, again with automatic UNICODE conversion.
Dan East