【问题标题】:Listing file in Haxe with the Windows (cpp) target returns empty strings?带有 Windows (cpp) 目标的 Haxe 列表文件返回空字符串?
【发布时间】:2019-08-14 22:06:27
【问题描述】:

我在 cpp Windows 上使用 Haxe 列出文件:

FileSystem.readDirectory('\some\path\here');

我得到一个空字符串数组。 有趣的是,我得到的字符串数与文件数相匹配。

【问题讨论】:

    标签: haxe openfl


    【解决方案1】:

    默认情况下,haxe 3.4.4 的安装似乎与 hxcpp 4.0.19 一起安装,它在某些时候可以工作,但存在一些问题。我不得不降级并切换到 hxcpp 3.4.188。

    haxelib install hxcpp 3.4.188
    haxelib set hxcpp 3.4.188
    

    然后它完美地工作了。

    【讨论】:

    • 我认为这很有可能与github.com/openfl/lime/issues/1331 是相同的问题,在这种情况下,从 GitHub 安装 hxcpp 应该也可以正常工作(并且 4.0.19 之后的版本将不再有这个问题)。
    猜你喜欢
    • 2015-07-05
    • 2019-08-05
    • 1970-01-01
    • 2014-09-16
    • 2014-02-11
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多