WSPRINTF usage

xiaoxiao2021-03-06  35

Int WSPrintf

LPTSTR LPOUT, / / ​​Output buffer, maximum 1024 bytes

LPCTSTR LPFMT, // Format string

... // The parameters that need to be output

);

Use this function to convert the numbers to strings;

example:

INT x = 6;

LPTSTSTSTSZBUFFER = New Tchar [1024];

WSPrintf (SZBuffer, "% D", X);

MessageBox (NULL, SZBuffer, "", MB_OK);

You can use this function to replace LSTRCAT, and you can use it to connect multiple strings and numbers.

转载请注明原文地址:https://www.9cbs.com/read-75864.html

New Post(0)