C++/CLI with MFCの皆さん、わりとつらい
System::String「文字列です」std::string「文字列です」CString「文字列です」LPCTSTR「文字列ですよ……?」
BSTR「……」COMのみなさんは帰ってくれ
ちなみに数多くある最悪ポイントの一つはstd::stringのempty()は空かどうかを返すメソッドでCStringのEmpty()は空にするメソッドだという点です
参考std::string::empty()https://cpprefjp.github.io/reference/string/basic_string/empty.htmlCString::Empty()https://learn.microsoft.com/ja-jp/cpp/atl-mfc-shared/reference/csimplestringt-class?view=msvc-170#empty
Mastodon is the best way to keep up with what's happening.
Follow anyone across the fediverse and see it all in chronological order. No algorithms, ads, or clickbait in sight.