Если путь к папке, содержащей исполняемый файл, содержит китайские символы, ShellExecute не запускается. ⇐ C++
Если путь к папке, содержащей исполняемый файл, содержит китайские символы, ShellExecute не запускается.
If ShellExecute is called with the following parameters, no action is taken, and no errors are reported:
nResult = ShellExecute(nullptr, L"open", strPptBuilderPath, strParameters, nullptr, SW_SHOWNORMAL); When strPptBuilderPath resembles "C:\temp\someexecutible.exe", the function operates as expected. The path provided below is an examples and is never hardcoded.
When strPptBuilderPath is set to "C:\我的标签\someexecutible.exe", the function does not work as intended.
Even testing on a Chinese OS didn't resolve the issue.
I attempted to use ShellExecuteW despite having my C++ VS project configured for Unicode Character Set. I also experimented with ShellExecuteA, converting my strings from UTF-16 to UTF-8, and from UTF-16 to ANSI, but unfortunately, none of these approaches yielded the desired outcome.
Источник: https://stackoverflow.com/questions/781 ... cters-shel
If ShellExecute is called with the following parameters, no action is taken, and no errors are reported:
nResult = ShellExecute(nullptr, L"open", strPptBuilderPath, strParameters, nullptr, SW_SHOWNORMAL); When strPptBuilderPath resembles "C:\temp\someexecutible.exe", the function operates as expected. The path provided below is an examples and is never hardcoded.
When strPptBuilderPath is set to "C:\我的标签\someexecutible.exe", the function does not work as intended.
Even testing on a Chinese OS didn't resolve the issue.
I attempted to use ShellExecuteW despite having my C++ VS project configured for Unicode Character Set. I also experimented with ShellExecuteA, converting my strings from UTF-16 to UTF-8, and from UTF-16 to ANSI, but unfortunately, none of these approaches yielded the desired outcome.
Источник: https://stackoverflow.com/questions/781 ... cters-shel
-
- Похожие темы
- Ответы
- Просмотры
- Последнее сообщение