Visual Studio 2019和Excel Addin .xll调试和Office 365 64位

发布于 2025-02-11 23:11:00 字数 376 浏览 2 评论 0原文

我们在C ++(Visual Studio 2019)中开发.xll(基本上是C ++中的Excel扩展)。通常,我们通过在项目的属性中配置调试环境来调试这些问题。我们通常将命令设置为 /excel.exe /x并调试XLL代码。

直到我们开始过渡到Office 365。Excel是64位版本。那真的不是问题。我们已经建造了适当的64位XLL。问题是Visual Studio无法启动Excel。我们看到一个错误“< ...>/excel.exe,带有代码-1”,并说无法启动Excel的对话框。

发生了什么变化?人们是否有类似的经验以及他们如何解决这个问题。周围的工作是从批处理文件中启动Excel,并从Visual Studio中附加。但是这太乏味了。

事先感谢您的帮助和帮助。

We develop .xlls (Essentially an Excel Extension in C++) in C++ (Visual studio 2019). We typically debug these by configuring the Debug environment in the properties for the project. We typically set the command to be run as /excel.exe /X and debug the xll code.

This worked fine till we started transition to OFFICE 365. The excel is a 64 bit version. That is really not a problem. We have built appropriate 64 bit xlls. The issue is that Visual Studio fails to launch EXCEL. We see an error "<...>/excel.exe exited with code -1" and a dialog that says could not launch excel.

What has changed? Do folks have similar experience and how have they resolved the issue. The work around is to launch excel from a batch file and attach from visual studio. However this is too tedious.

Thanks in advance for the assistance and help.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文