Office 64 位中的 32 位 dll
我知道我无法在 64 位进程中加载 32 位 dll。我有一个 32 位 dll(VB6 组件),没有源代码,加载在 Excel 自动化宏中。我有什么选择?
I understand that I cannot load a 32 bit dll in a 64 bit process. I have a 32 bit dll (VB6 component), with no source code, that is loaded in an Excel automation macro. What are my options?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
64 位平台不支持 32 位加载项少量。 Microsoft 建议使用 32 位版本的 Office,除非您运行32 位进程的内存限制只有在您需要处理非常大的电子表格时才可能发生:
如果您因为以下原因需要使用 64 位版本您有以下选项的内存限制:
实际上还有 Microsoft 在本文中未提及的第四个选项:您可以创建一个 32 位进程外 COM 服务器,充当 64 位宏和旧版 32 位 COM 组件之间的代理,或者创建 COM+ 应用程序。这里提供了一个示例:
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:
If you need to go with the 64-bit version because of the memory limitations you have the following options:
There actually is a fourth option which is not mentioned in this article by Microsoft: You can create a 32-bit out-of-process COM server which serves as a proxy between your 64-bit macros and the legacy 32-bit COM components or create a COM+ application. A sample is provided here: