使用.NET在VB6或古典ASP [英] Use .NET in VB6 or classical ASP
问题描述
重复 <一个href="http://stackoverflow.com/questions/233284/calling-net-methods-from-vb6-via-com-visible-dll">Calling从VB6通过COM可见的DLL .NET方法
这方面存在使用/调用.NET类/功能/库(.NET 3.X)在VB6和经典ASP? 有没有人遇到与?多少努力是必要的包装.NET到COM? 是否有工具可帮助?
Which ways exist to use/call .NET classes/functions/libraries (.net 3.x) in VB6 or classical ASP ? Has anybody experiences with that ? How much effort is necessary to wrap .NET to COM ? Are there tools which help ?
推荐答案
这是pretty的其实很容易,我已经创建.NET组件来自VB6 COM DLL和经典ASP调用。你基本上需要创建一个COM可调用包装多数民众赞成公开.NET组件COM客户端。本文将让你开始
It's pretty easy actually and I have created .NET components called from both VB6 COM dlls and Classic ASP. You essentially need to create a COM callable wrapper thats exposes the .NET component to a COM client. This article will get you started
一对夫妇指针
- 在任何COM调用类型都需要一个公共的无参数的构造函数
- 标记市民,要暴露给COM的任何方法,属性或事件。
- 这是一个好主意, 明确地实现接口 ,而不是依靠一个被从你的类为您生成。
这篇关于使用.NET在VB6或古典ASP的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!