2017年8月9日 星期三

Use "DebugView" to show log in c++ dll

void log(char* pszFormat, ...)
{

 static char logbuf[512]; 
 va_list args;

#if _DEBUG
 
 va_start(args, pszFormat);
 vsprintf_s(logbuf, pszFormat, args);
 OutputDebugStringA(logbuf);
 va_end(args);

#endif

}

沒有留言:

張貼留言