기 ¶
~cpp void Foo(LPCTSTR pFmt, ...) { int len; va_list args; TCHAR *pbuf; CString str; va_start(args, pFmt); len = _vsctprintf(pFmt, args) + 1; pbuf = new TCHAR[len]; _vstprintf(pbuf, pFmt, args); AfxMessageBox(str); SAFEDELETE(pbuf); }
게 . .. MSDN . .