wsprintfW は 次の引数を持っています。
LPTSTR lpOut , LPCTSTR lpFmt , ...
wsprintfは、C言語のsprintfとほぼ同等の働きをします。
第1引数には整形後の文字列を格納する文字列バッファ
第2引数には整形したい書式文字列
第3引数以降には埋め込みたい文字列なり数値なり
今回は "Param1 = %d , Param2 = %s"という書式で数値(%d)と文字列(%s)を埋め込みます。
翻訳 / 英語
- 2012/09/06 09:18:30に投稿されました
wsprintfW has the following arguments.
LPTSTR lpOut , LPCTSTR lpFmt , ...
sprintf works almost exactly the same as sprintf in the C language.
First argument: buffer that will store the formatted output
Second argument: string specifying desired format
Third argument (and additional arguments): strings and values you want to embed
This time we will embed the phrase "Param1 = %d , Param2 = %s" with a number (%d) and a string (%s)
akihitoさんはこの翻訳を気に入りました
LPTSTR lpOut , LPCTSTR lpFmt , ...
sprintf works almost exactly the same as sprintf in the C language.
First argument: buffer that will store the formatted output
Second argument: string specifying desired format
Third argument (and additional arguments): strings and values you want to embed
This time we will embed the phrase "Param1 = %d , Param2 = %s" with a number (%d) and a string (%s)
翻訳 / 英語
- 2012/09/06 13:04:57に投稿されました
wsprintfW has the following arguments.
LPTSTR IpOut, LPCTSTR IpFmt, ...
wsprintf works in almost the same way as sprintf of C.
The first argument is a string buffer that contains the formatted string.
The second argument is a format string that you want to format.
The third and following arguments are strings or numbers that you want to insert.
This time I will insert a number(%d) and a string(%s) into a format string "Param1 = %d, Param2 = %s".
akihitoさんはこの翻訳を気に入りました
LPTSTR IpOut, LPCTSTR IpFmt, ...
wsprintf works in almost the same way as sprintf of C.
The first argument is a string buffer that contains the formatted string.
The second argument is a format string that you want to format.
The third and following arguments are strings or numbers that you want to insert.
This time I will insert a number(%d) and a string(%s) into a format string "Param1 = %d, Param2 = %s".
翻訳 / 英語
- 2012/09/06 12:28:13に投稿されました
wsprintfW takes parameters as below;
LPTSTR lpOut , LPCTSTR lpFmt , ...
wsprint works almost as same as sprintf in C string.
The first parameter is a buffer to store string after formatting.
The Second parameter is the string you want to format.
And after the third parameter, you can pass something like string, number or so of which you want to insert into the string. Now, let's insert number(%d) and string(%s) by using the expression as below:
"Param1 = %d , Param2 = %s"
akihitoさんはこの翻訳を気に入りました
LPTSTR lpOut , LPCTSTR lpFmt , ...
wsprint works almost as same as sprintf in C string.
The first parameter is a buffer to store string after formatting.
The Second parameter is the string you want to format.
And after the third parameter, you can pass something like string, number or so of which you want to insert into the string. Now, let's insert number(%d) and string(%s) by using the expression as below:
"Param1 = %d , Param2 = %s"
このページも参考になると思います。
http://msdn.microsoft.com/en-us/library/windows/desktop/ms647550%28v=vs.85%29.aspx