Which function should I use to output text to the \"Output\" window in Visual Studio?
I tried printf() but it doesn\'t show up.
printf()
OutputDebugString function will do it.
example code
void CClass::Output(const char* szFormat, ...) { char szBuff[1024]; va_list arg; va_start(arg, szFormat); _vsnprintf(szBuff, sizeof(szBuff), szFormat, arg); va_end(arg); OutputDebugString(szBuff); }