programing:cpp_builder:cpp_builder-lcmapstring
差分
このページの2つのバージョン間の差分を表示します。
| 両方とも前のリビジョン前のリビジョン次のリビジョン | 前のリビジョン | ||
| programing:cpp_builder:cpp_builder-lcmapstring [2020/02/04 08:11] – yoko | programing:cpp_builder:cpp_builder-lcmapstring [2020/02/04 08:18] (現在) – [コーディング例] yoko | ||
|---|---|---|---|
| 行 8: | 行 8: | ||
| <code c> | <code c> | ||
| + | Char buff[130]; | ||
| + | PChar s: | ||
| + | | ||
| + | String text = L" | ||
| + | int len = text.Length(); | ||
| + | | ||
| + | // DWORD flags = LCMAP_FULLWIDTH; | ||
| + | DWORD flags = LCMAP_HALFWIDTH; | ||
| + | // DWORD flags = LCMAP_HIRAGANA; | ||
| + | // DWORD flags = LCMAP_KATAKANA; | ||
| - | |||
| - | DWORD flags = LCMAP_HALFWIDTH; | ||
| const int size = len + 1; | const int size = len + 1; | ||
| - | | + | |
| - | s = _msgbuff; | + | s = buff; |
| - | LCMapString(GetUserDefaultLCID(), | + | LCMapString(GetUserDefaultLCID(), |
| flags, | flags, | ||
| text.c_str(), | text.c_str(), | ||
| 行 20: | 行 28: | ||
| (LPWSTR)s, | (LPWSTR)s, | ||
| size); | size); | ||
| - | | + | |
| - | } | + | } |
| - | else { | + | else { |
| - | s = text.c_str(); | + | s = text.c_str(); |
| - | } | + | } |
| - | | + | |
| </ | </ | ||
programing/cpp_builder/cpp_builder-lcmapstring.1580803896.txt.gz · 最終更新: by yoko
