【问题标题】:Poco::File::exist always return falsePoco::File::exist 总是返回 false
【发布时间】:2015-05-19 10:08:00
【问题描述】:

有人遇到过这个问题。对于文件存在,文件总是返回 false:

std::string filePath = "C:\\Windows\\system32\\SnippingTool.exe";
Poco::File file(filePath);
bool exist = file.exists(); // Should return true. But alway return false.

【问题讨论】:

标签: c++ poco poco-libraries


【解决方案1】:

回复here:

您的应用程序是 32 位的,但您在 64 位系统上运行? 如果是这样,请使用 "C:\\Windows\\sysnative\\SnippingTool.exe"

请参阅File System Redirector 了解原因。

【讨论】:

    猜你喜欢
    • 2019-03-10
    • 2017-01-28
    • 1970-01-01
    • 1970-01-01
    • 2012-04-04
    • 1970-01-01
    • 1970-01-01
    • 2016-07-20
    • 2021-11-05
    相关资源
    最近更新 更多