wsprinft funzt nicht
-
WCHAR title[100]; wsprintf(title, L"FPS: %4.2f", FPS);
Gibt aus "FPS: f".
-
Ich glaube du bist im falschen Forum gelandet. Das ist doch WinApi-Schmutz, oder?
-
http://msdn.microsoft.com/en-us/library/windows/desktop/ms647550(v=vs.85).aspx
The wsprintf function has a surprising deficiency: it does not handle floating-point parameters.
-
*rofl*
-
Nimm swprintf und wchar_t, das ist wenigstens C94/95 (ANSI/ISO/IEC 9899-1990/AM 1-1995)
#ifdef __STDC_VERSION__ #if __STDC_VERSION__ >= 199409L #include <wchar.h> #endif #endif