Re: wsprintf I64 - how to get it to include a plus sign ? Wrap-up

malxau <[email protected]> Fri, 20 Mar 2026 05:46:15 -0000 (UTC)
Newsgroups comp.os.ms-windows.programmer.win32,alt.comp.os.windows-xp,alt.windows7.general
Organization A noiseless patient Spider
Message-ID <[email protected]>
In comp.os.ms-windows.programmer.win32 R.Wieser <[email protected]> wrote:
> I just did a few tests with CRTDLL sprintf, NTDDL sprintf and USER32 
> wsprintf, and I must say I did not extpect all three to behave differently - 

Are you really using CRTDLL, not MSVCRT?

CRTDLL is the version from 1993, NT 3.1.  The compiler at that time did
not support 64 bit integers - that came later with Visual C++ 2.0 and
MSVCRT20.DLL.  So I'm not surprised that CRTDLL wouldn't recognize these
format strings.

The reason for keeping CRTDLL.DLL today is to provide compatibility with
programs written to expect its semantics.

(Ever wonder why we have LARGE_INTEGER? Yeah.)

- M