.NET COM 可见 DLL 与 Active X DLL
我遇到过这样的情况:第三方应用程序加载了 VB6 Active X DLL 扩展的集合。这些扩展的唯一限制是它们包含一组预定义的 IDispatch 函数。
是否可以实现一个可以互换使用的 COM 可见 .NET DLL 来代替 Active X DLL,或者 Active X DLL 和 .NET 可见 COM DLL 之间是否存在根本区别,从而阻止这种情况发生?
I have a situation where a third party application loads a collection of VB6 Active X DLL extensions. The only constraint for these extensions is that they contain a set of predefined IDispatch functions.
Would it be possible to implement a COM visible .NET DLL that could be used interchangeably in place of the Active X DLL, or is there a fundamental difference between Active X DLLs and .NET visible COM DLLs that would prevent this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
在 .NET 中构建完整的 ActiveX 对象是绝对可能的。应用程序有可能(尽管不太可能)对 IDispatch 以外的其他内容进行 QI,但最好的选择就是尝试一下。请记住,使用 .NET 来处理此类事情会产生性能影响和并行框架版本控制影响。
It's absolutely possible to build complete ActiveX objects in .NET. It's possible (although not terribly likely) that the application is going to QI for something other than IDispatch, but your best bet is to just try it. Keep in mind that using .NET for this type of thing has performance implications and side-by-side framework versioning implications.