wxVSnprintf and %I64 does not work in 2.8.0 anymore

Vadim Zeitlin vadim at wxwindows.org
Tue Jan 2 12:38:24 PST 2007


[cc'ing to Francesco as I'm not sure he reads wx-users, please follow up
 on wx-dev, thanks]

On Tue, 02 Jan 2007 21:00:28 +0100 PgmHelmi <pgmhelmi at telering.at> wrote:

P> wxVSnprintf does not support "%I64" anymore for 64 bit values in 2.8.0 
P> compiled with VC 6.0 on Windows 2000. wxLongLongFmtSpec maps to "%I64" 
P> so this does not work too. Is this a bug or is there another format for 
P> 64 bit values now? As this function is used in wxString::Printf it works 
P> there not too.

 This is almost surely a consequence of using our own printf()
implementation instead of the C RTL one in 2.8, so the easiest workaround
for now would be to set wxUSE_PRINTF_POS_PARAMS to 0 in setup.h to avoid
using it. But the real fix would probably be to add %I64 support under at
least Windows as people can come to expect it and if it's used inside an
#ifdef __WXMSW__ it becomes quite difficult to explain why shouldn't it
work.

 Regards,
VZ

-- 
TT-Solutions: wxWidgets consultancy and technical support
               http://www.tt-solutions.com/





More information about the wx-users mailing list