Windows Runtime Cpp 文字列操作 新しいページはコチラ
提供: yonewiki
(→文字列値格納配列先頭アドレス取得 WindowsGetStringRawBuffer(関数)) |
(→文字列の複製 WindowsDuplicateString(関数)) |
||
| 113行: | 113行: | ||
:'''第2引数''':第1引数で指定した文字列変数を複製して、新たに文字列値を保持したいHSTRINGポインタ変数を付与する。サンプルではxx行目で使われていて、引数はphStrとなっています。 | :'''第2引数''':第1引数で指定した文字列変数を複製して、新たに文字列値を保持したいHSTRINGポインタ変数を付与する。サンプルではxx行目で使われていて、引数はphStrとなっています。 | ||
| + | <syntaxhighlight lang="cpp" line start="1"> | ||
| + | #include <locale.h> | ||
| + | #include <wchar.h> | ||
| + | #include <stdio.h> | ||
| + | #include <crtdbg.h> | ||
| + | #include <roapi.h> | ||
| + | #include <winstring.h> | ||
| + | |||
| + | |||
| + | int main() { | ||
| + | ★ここにプログラムを貼り付けます★ | ||
| + | |||
| + | } | ||
| + | </syntaxhighlight> | ||
| + | |||
| + | 実行結果の出力結果 | ||
| + | ★ここに出力結果を貼り付けます★ | ||
[[Windows Runtime Cpp]]へ戻る | [[Windows Runtime Cpp]]へ戻る | ||