3,248
社区成员




LPCTSTR Format(LPCTSTR pFormat,... )
{
va_list ArgList;
LPTSTR Buffer=new TCHAR[1024];
va_start(ArgList, pFormat);
#ifdef _UNICODE
vswprintf(Buffer, pFormat, ArgList);
#else
vsprintf(Buffer, pFormat, ArgList);
#endif
va_end(ArgList);
return Buffer;
}
#define DBGPRINT(lpszFmt, ...) \
TCHAR szText[1024] = {0}; \
StringCchPrintf(szText, _countof(szText), lpszFmt, __VA_ARGS__); \
OutputDebugString(szText);