Программы на C++. Форум разработчиков
1732477459
Anonymous
[code]namespace fs = std::filesystem;
fs::path currentPath = fs::current_path();
currentPath += "ding-36029.mp3";
wstring str = currentPath.wstring();
LPCWSTR strPath = str.c_str();
[/code]
Во второй строке говорится, что она не может прочитать символы строки, и поэтому код не может указать путь. Есть какие-нибудь предложения о том, в чем может быть проблема?
[img]https://i.sstatic.net/DFOcSj4E.png[/img]
< /p>
Полный путь к аудиофайлу (mp3).
Подробнее здесь: [url]https://stackoverflow.com/questions/79220802/why-is-my-code-giving-me-an-unable-to-read-characters-from-string-error[/url]