gpt4 book ai didi

c++ - XLW - 编译的 XLL "The file format and extension don' t 匹配”

转载 作者:太空宇宙 更新时间:2023-11-04 13:33:47 25 4
gpt4 key购买 nike

我正在使用 XLW 5 构建一个 Excel XLL 插件,并且正在试验 EchoShort 模板示例。我使用 GNU Make 成功编译了 Template.xllg++ version 4.9.2 (mingw-w64) under cygwin。但是,当尝试打开XLL时,Excel 2013报错:

The file format and extension of Template.xll don't match. The file could be corrupted, or unsafe. Unless you trust its source, don't open it. Would you like to open it anyway?

我继续打开它,它似乎充满了不可读的字符。我尝试使用开发人员选项卡下的加载项管理器添加 xll,但是当我尝试在单元格中调用 EchoShort 时,我得到一个 #NAME 错误。

我是 XLW 的新手,如果我能让它工作的话,这似乎是一个令人难以置信的包。非常感谢任何帮助。

编辑:应该提到它在 cygwin

编辑:也尝试使用 VS2013,同样的事情发生了,所以它不是 cygwin 也不是 MinGW

最佳答案

事实证明 VS2013 x64编译xll有效,因为我似乎在使用 Excel 2013 x64。我想我需要清理我的 $PATH , 自 dependency-walker显示 32 bit 的混合物和 64 bit dll是吗?

关于c++ - XLW - 编译的 XLL "The file format and extension don' t 匹配”,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/30488466/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com