DXUTTRACE( "NumFace: %d\n", 100 );
I find some information.
#define DXUTTRACE DXUTOutputDebugString
#define DXUTOutputDebugString DXUTOutputDebugStringW
VOID WINAPI DXUTOutputDebugStringW( LPCWSTR strMsg, ... )
{
#if defined(DEBUG) || defined(_DEBUG)
WCHAR strBuffer[512];
va_list args;
va_start(args, strMsg);
swprintf_s( strBuffer, 512, strMsg, args );
strBuffer[511] = L'\0';
va_end(args);
OutputDebugString( strBuffer );
#else
UNREFERENCED_PARAMETER( strMsg );
#endif
}
So the function could format message, why do it give wrong result?






