需要将VB6 ActiveX DLL转换为与经典ASP的IIS7 64位一起使用 [英] Need to convert VB6 ActiveX DLL to work with IIS7 64bit with Classic ASP
本文介绍了需要将VB6 ActiveX DLL转换为与经典ASP的IIS7 64位一起使用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我需要移动一个用VB6创建的大型32位ActiveX DLL,它在IIS7中运行良好,但新要求是内部函数需要是64位。由于VB6没有64位,有没有人知道要采取的路径?该组件使用ASPTypeLibrary和COM +来获取查询字符串,表单元素和最终响应,如果需要,可以更改。
谢谢
I need to move a large 32-bit ActiveX DLL created with VB6 that works fine in IIS7, but a new requirement is that the functions inside need to be 64-bit. Since VB6 does not do 64bit, does anyone know of a path to take? The component uses ASPTypeLibrary and COM+ for getting querystrings, forms elements, and eventually response, and this can be changed if needed.
Thanks
推荐答案
VB6? 64位指令集支持?只是忘记它。
参见,例如: http://stackoverflow.com/questions/1167102/can-a-vb6-component-be-compiled-to-64-bit [ ^ ]。
当然,您可以在64位系统上使用它,只能使用WoW64支持的x86(32位)进程: http://en.wikipedia.org/wiki/WOW64 [ ^ ]。
一般来说,VB6 ...(叹气)...请看最近这个主题:我的问题是关于visual basic 6 [ ^ ] :-)。
我确信最可行的解决方案是迁移到例如VB.NET。
-SA
VB6? 64-bit instruction-set support? Just forget it.
See, for example: http://stackoverflow.com/questions/1167102/can-a-vb6-component-be-compiled-to-64-bit[^].
Of course, you can use it on 64-bit systems, bit only with x86 (32-bit) processes which are supported by WoW64: http://en.wikipedia.org/wiki/WOW64[^].
And, generally, VB6… (sigh)… please see this recent thread: my question is about visual basic 6[^] :-).
I'm sure the most viable solution would be to migrate to, for example, VB.NET.
—SA
(我对谢尔盖的帖子的评论作为答案)
您可以将.NET暴露给COM操作就像它们一样ActiveX对象,请参阅:
将.NET暴露给COM(注意最后的答案)
MSDN .NET COM操作
另一个好的教程 >
但请注意,从大型vb6库到.NET的过渡将非常痛苦,您将不得不重写其中的大部分内容。尽量不要进行1> 1转换,.NET有一些VB6中没有的功能可能会让你的生活变得更轻松。
(My comment to Sergey's post as an answer)
You can expose .NET to COM operations just like they were ActiveX objects, see:
Exposing .NET To COM (pay attention to the very last answer)
MSDN .NET COM Operations
Another good tutorial
But be aware, the transition from a "large vb6" library to .NET will be very painful, you will have to rewrite a lot of it. Try not to do a 1->1 conversion, .NET has some features that weren't available in VB6 that may make your life a lot easier.
这篇关于需要将VB6 ActiveX DLL转换为与经典ASP的IIS7 64位一起使用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文