在 MS Office 64 位下使用 32 位 COM 插件

发布于 2024-09-27 20:19:32 字数 371 浏览 0 评论 0原文

我正在努力将现有的 32 位 COM 插件应用到 64 位 Microsoft Word 2010。

为了使插件对 Word 可见,我使用了 dllsurrogate-method,如其所述 此处

问题是,当尝试将其工具栏和菜单添加到 Office 时,现在插件会导致一些奇怪的异常。我无法弄清楚,命令栏引用在不可预测的时刻变得无效似乎是什么。

谁能解释一下吗?

请注意,当我在 32 位 Microsoft Word 2010 和更旧版本的 Ms Office 下使用相同的插件时,一切都很好。

I am struggling to apply an existing 32bit COM addin to 64bit Microsoft Word 2010.

To make the addin visible to Word, I have used the dllsurrogate-method, as it described here.

The problem is that now addin caused some strange exception when tries to add its toolbar and menu to office's. I cannot figure out, what it is, it seems, that the command bar reference became not valid in unpredicable moments.

Can anyone explain this?

Note, that everething is fine when I use the same addin under 32bit Microsoft Word 2010 and more old versions of Ms Office.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

猛虎独行 2024-10-04 20:19:32

64 位不支持 32 位加载项。 Microsoft 建议使用 32 位版本的 Office,除非您遇到32 位进程的内存限制只有在您需要处理非常大的电子表格时才可能发生:

安装 Office 2010 版本的建议如下:

  • 如果您组织中的用户依赖于 Office 的现有扩展,例如 ActiveX 控件、第三方加载项、基于早期版本 Office 构建的内部解决方案或与接口相关的程序的 32 位版本如果直接使用 Office,我们建议您在运行 32 位和 64 位支持的 Windows 操作系统的计算机上安装 32 位 Office 2010(默认安装)。

  • 如果您组织中的某些用户是使用大于 2 GB 的 Excel 电子表格的 Excel 专家用户,他们可以安装 64 位版本的 Office 2010。此外,如果您有-内部解决方案开发人员,我们建议这些开发人员能够访问 64 位版本的 Office 2010,以便他们可以在 64 位版本的 Office 2010 上测试和更新您的内部解决方案。

如果您因为以下原因需要使用 64 位版本您有以下选项的内存限制:

  • 如果有源代码,可以自己生成64位版本,

  • 您可以联系供应商获取更新版本,

  • 您可以搜索替代解决方案。

32-bit add-ins are not supported on 64-bit. Microsoft recommends to use the 32-bit version of Office unless you run into the memory limitations of a 32-bit process which is only likely to happen if you need to deal with extremely large spreadsheets:

The recommendations for which edition of Office 2010 to install are as follows:

  • If users in your organization depend on existing extensions to Office, such as ActiveX controls, third-party add-ins, in-house solutions built on previous versions of Office, or 32-bit versions of programs that interface directly with Office, we recommend that you install 32-bit Office 2010 (the default installation) on computers that are running both 32-bit and 64-bit supported Windows operating systems.

  • If some users in your organization are Excel expert users who work with Excel spreadsheets that are larger than 2 gigabytes (GB), they can install the 64-bit edition of Office 2010. In addition, if you have in-house solution developers, we recommend that those developers have access to the 64-bit edition of Office 2010 so that they can test and update your in-house solutions on the 64-bit edition of Office 2010.

If you need to go with the 64-bit version because of the memory limitations you have the following options:

  • If you have the source code, you can generate a 64-bit version yourself,

  • You can contact the vendor for an updated version,

  • You can search for an alternative solution.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文