“addin.XLL is in a different format” issue, cannot open the xll I created by myself

落爺英雄遲暮 提交于 2019-12-06 03:56:50

Do yourself a favor and use http://xll.codeplex.com.

The main reasons are :

  1. you try to open an xll with a wrong architecture (ex : 32 bit xll with excel 64 bits )

  2. some externals dll are missing.(see Dependency Walker tool) Note that if you are building in debug mode and try to open it via visual studio, in this case your environment path variable may be not available and the xll is missing some dlls.

The possible reason could be missing dependencies (crt dlls, etc.). You can check by using Dependency Walker tool.

It seems like you're building the solution in debug mode. If you build a solution in debug mode, visual studio links the xll with the debug library which is rarely installed on another computer. Therefore make sure you set the build configuration to release and it should work on other computers (if they have the normal ms c++ redistributable library installed).

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!