2021-01-20から1日間の記事一覧
本文 C++でワイド文字列の静的配列(const wchar_t ...[];)からstd::vector<std::wstring>へ変換するにはstd::vector<std::wstring>のコンストラクタを使用します。引数には静的配列の(変換したい範囲の)最初と最後要素のアドレスを渡します。このコンストラクタはcpprefjpではイテレ</std::wstring></std::wstring>…
C++とWin32 APIでファイルの多言語対応リソース(Microsoft Docsでは「language-specific resource files」)の言語名とMUIファイルパスを取得するサンプルコードです。 // 動作確認環境:C++ 17 #include <io.h> #include <fcntl.h> #include <array> #include <filesystem> #include <iostream> #includ</iostream></filesystem></array></fcntl.h></io.h>…