Някой да има този проблем. Файлът винаги връща false за съществуващ файл:
std::string filePath = "C:\\Windows\\system32\\SnippingTool.exe";
Poco::File file(filePath);
bool exist = file.exists(); // Should return true. But alway return false.
Някой да има този проблем. Файлът винаги връща false за съществуващ файл:
std::string filePath = "C:\\Windows\\system32\\SnippingTool.exe";
Poco::File file(filePath);
bool exist = file.exists(); // Should return true. But alway return false.
Отговорено тук:
Вашето приложение 32-битово ли е, но работите на 64-битова система? Ако е така, използвайте
"C:\\Windows\\sysnative\\SnippingTool.exe"
Вижте Пренасочване на файлова система за обяснение защо.
System32
? - person Hacketo   schedule 19.05.2015