INFO: wsprintf() Buffer Limit in Windows

ID: Q77255


The information in this article applies to:
  • Microsoft Windows Software Development Kit (SDK) 3.1
  • Microsoft Win32 Application Programming Interface (API), used with:
    • Microsoft Windows NT, versions 3.5, 3.51, 4.0
    • Microsoft Windows 95


SUMMARY

The wsprintf(lpOutput, lpFormat [, argument] ...) and wvsprintf() functions format and store a series of characters and values in a buffer specified by the first parameter, lpOutput. This buffer is limited to 1K (1024 bytes); in other words, the largest buffer that wsprintf can use is 1K.

If an application tries to use a buffer larger than 1K, the string will be truncated automatically to a length of 1K.

Additional query words: 3.00 3.10 3.50 4.00 win16sdk

Keywords : kbNTOS310 kbNTOS350 kbNTOS351 kbNTOS400 kbWinOS95 kbSDKWin16
Version : WINDOWS:3.1,95; winnt:3.5,3.51,4.0
Platform : WINDOWS winnt
Issue type : kbinfo


Last Reviewed: June 16, 1999
© 2000 Microsoft Corporation. All rights reserved. Terms of Use.