Forums before death by AOL, social media and spammers... "We can't have nice things"
|    alt.comp.os.windows-xp    |    Actually wasn't too bad for a M$-OS    |    17,273 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 17,115 of 17,273    |
|    JJ to R.Wieser    |
|    Re: wsprintf I64 - how to get it to incl    |
|    07 Jan 26 17:49:54    |
      XPost: comp.os.ms-windows.programmer.win32, alt.windows7.general       From: jj4public@gmail.com              On Wed, 7 Jan 2026 09:35:45 +0100, R.Wieser wrote:              > Hello all,       >       > OS XPsp3 :       >       > I'm using wsprintfA (user32) with the format-string "%010I64d" to output       > a provided 64-bit number. Which works.       >       > The thing is that I would like to see a "+" sign for the positive numbers,       > and I can't seem to do it. No matter where I put a "+" symbol in the format       > string the output breaks.       >       > Question : is there a way to get wsprintfA to include a plus sign when       > displaying decimal numbers, and if so what is it ?       >       > Remark : I've also tried sprintf (crtdll), but it doesn't seem to understand       > either "%I64d" or "%lld".       >       > Remark #2 : wsprintfA doesn't understand "%+d" either. :-|       >       > Regards,       > Rudy Wieser              `+` is never part of format control string in the first place. It'd just be       treated as literal text.              --- SoupGate-Win32 v1.05        * Origin: you cannot sedate... all the things you hate (1:229/2)    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca