Office 64位中的32位dll [英] 32 bit dll in Office 64 bit
问题描述
我了解我无法在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?
推荐答案
32位加载项是 Microsoft建议使用32位版本的Office,除非您遇到以下情况32位进程的内存限制,仅当您需要处理非常大的电子表格时,这种情况才可能发生:
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:
关于要安装Office 2010版本的建议如下:
The recommendations for which edition of Office 2010 to install are as follows:
-
如果组织中的用户依赖于Office的现有扩展,例如ActiveX控件,第三方加载项,基于Office的早期版本构建的内部解决方案或接口的32位版本的程序直接在Office上,我们建议您在运行32位和64位受支持的Windows操作系统的计算机上安装32位Office 2010(默认安装).
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.
如果组织中的某些用户是使用大于2 GB的Excel电子表格的Excel专家用户,则他们可以安装64位版本的Office 2010.内部解决方案开发人员,我们建议这些开发人员可以访问64位版本的Office 2010,以便他们可以在64位版本的Office 2010上测试和更新您的内部解决方案.
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.
如果由于内存限制而需要使用64位版本,则以下选项:
If you need to go with the 64-bit version because of the memory limitations you have the following options:
如果您有源代码,则可以自己生成64位版本,
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.
实际上,Microsoft在本文中没有提到第四个选项:您可以创建一个32位进程外COM服务器,该服务器用作您的64位宏和旧版32位之间的代理COM组件或创建一个COM +应用程序.此处提供了一个示例:
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:
这篇关于Office 64位中的32位dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!