如何使 32 位 VB6 应用程序与 64 位 Office 配合使用?

问题描述:

我有一个用 VB 6.0 和 VBA 开发的应用程序,它使用最新的 Office 32 位版本.但由于此应用程序是 32 位的,因此它不能在安装了 64 位 Office 版本的系统上运行.将此应用程序移植到 64 位的最佳策略是什么?我们的任务是使用 VB.NET 和从 VB/VBA 到 .NET 64 位的最小(尽可能多)代码修改.请建议我可以使用的最佳选项,以便我可以利用此移植的所有最佳实践.

I have an application developed in VB 6.0 and VBA that uses latest Office 32 bit version. But since this application is 32 bit, it does not run on systems where 64 bit Office versions are installed. What is the best strategy I have to adopt to port this application to 64 bit. We have a mandate to use VB.NET and minimal (as much as possible) code modification from VB/VBA to .NET 64 bit. Please suggest the best option I can use so that I can leverage all best practices for this porting.

@Prof.Falken 的回答很好,移植到 VB.NET 本身可能是个好主意,但这并不能保证你很容易得到您的应用程序的 64 位版本.如果您的 .NET 端口将使用 32 位 ActiveX 组件,而您没有 64 位替代品,那么这将无济于事.以下列出了一些需要考虑的主题:

The answer of @Prof.Falken is fine, and porting to VB.NET may be a good idea for itself, but this does not guarantee that you get easily a 64 bit version of your application. If your .NET port will use 32 bit ActiveX components for which you have no 64 bit replacement, then this won't help. Here are some topics listed to be considered:

http://office.microsoft.com/en-us/word-help/choose-the-32-bit-or-64-bit-version-of-microsoft-office-HA010369476.aspx

在我们的工作场所,系统管理员决定不在任何新的 64 位 Windows 计算机上安装 64 位 Office,因为这里使用的应用程序过多(也来自第三方供应商),否则会遇到问题.目前我们看不到 64 位 Office 版本对我们有多大好处.

In our workplace, systems administration decided not to install 64 bit Office on any of the new 64 bit Windows machines since here are too much applications in use (also from third party vendors) which would run into trouble else. And currently we don't see much benefits for us from the 64 bit Office version nowadays.

在这里我找到了另一个您可能感兴趣的链接:

Here I found another link which might be interesting for you:

http://www.pcpro.co.uk/news/enterprise/356173/microsoft-warns-users-off-64-bit-office-2010