包32位DLL 64位操作系统与regsvr32.exe的工作 [英] wrap 32 bit dll for 64 bit operating system to work with regsvr32.exe

查看:129
本文介绍了包32位DLL 64位操作系统与regsvr32.exe的工作的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

目前,我们正在从Windows 2003(32位)转让本公司网站到Windows 2008(64位),并纷纷创出问题。

We are currently transferring our websites from Windows 2003 (32-bit) to Windows 2008 (64-bit) and have hit a problem.

我们的一个网站上使用支付网关汇丰CPI要求进行注册(regsvr32.exe的)一个DLL,这个DLL,然后一个传统的ASP网站内部使用。问题是DLL是一个32位的DLL,所以它不会与在Windows 2008操作系统注册。

One of our website use the payment gateway HSBC CPI which requires a DLL to be registered(regsvr32.exe), this DLL is then used inside a classic asp website. The problem is the DLL is a 32-bit DLL and so it will not register with the the Windows 2008 operating system.

有如此,它的方法是暴露的,我们可以换一个C#.NET项目这32位DLL,可以与操作系统进行registerd的方式?

Is there a way we can wrap this 32 bit dll in a c#.net project so that it's methods are exposed and can be registerd with the OS?

任何帮助将非常AP preciated。

Any help would be very much appreciated.

推荐答案

您可以将DLL与C的regsvr32.exe注册:\\ WINDOWS \\ Syswow64资料夹

You can register the DLL with regsvr32.exe from the C:\Windows\SysWOW64 folder.

但是,因为你不能混用64位/ 32位code你必须创建x86上运行一个C#服务(见项目属性,平台目标),您可以从您的x64 web应用程序通过WCF然后使用

However since you can't mix 64/32bit code you'd have to create a C# service running in x86 (see the project properties, platform target) that you can then use from your x64 web app via WCF.

这是比较容易的办法是问汇丰银行的64位的DLL。

An easier option would be to ask HSBC for a x64 dll.

这篇关于包32位DLL 64位操作系统与regsvr32.exe的工作的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆