#author("2025-04-15T02:51:24+00:00","default:iseki","iseki")
#author("2025-04-15T02:51:29+00:00","default:iseki","iseki")
* Unicode

*** Windows Programing (VC++) [#dfc97e2d]
- 非 Unicode の場合は マルチバイト (mb)
- Unicode の場合は ワイドキャラクター (wc)
- 先頭に t の付く関数などは自動対応.
-- TCHAR, CString, LPTSTR, LPCTSTR (const) は自動対応
-- CString は LPCTSTR でキャストする
-- Unicode を使用している場合 CString と char* との間でキャストはできない.


**** キャスト可能 [#ie44e0e3]
- TCHAR と CString は何時でもキャスト可能
- char* と CString  はUnicode 未使用時のみキャスト可能

*** [[VS, VC++>./VC++]]
・CString → std::string
 CString cstr;
 std::string astr = static_cast(cstr);


・std::string → CString
 std::string astr;
 CString cstr = astr.c_str();

トップ   編集 差分 履歴 添付 複製 名前変更 リロード   新規 ページ一覧 検索 最終更新   ヘルプ   最終更新のRSS