Monthly Archives: November 2004

OutputDebugStringf

#include <strsafe .h> inline void __cdecl OutputDebugStringf( LPCTSTR pszFormat, … ) { va_list args = NULL; TCHAR chBuf[1024] = {_T(”)}; va_start(args, pszFormat); if ( SUCCEEDED(StringCchVPrintf(chBuf, sizeof(chBuf) / sizeof(chBuf[0]), pszFormat, args)) ) { ::OutputDebugString(chBuf); } va_end(args); } Advertisements

Posted in Programming | Leave a comment