COM/ActiveX 的优点之一是进程外 EXE.您可以有一个 EXE,它以一种其他进程(包括 VBScript 和 JScript)都可以使用的形式公开方法和属性.同时,EXE 可以有自己的功能,与它的类型库公开的功能相关或无关.
One of the nice things about COM/ActiveX was the out-of-process EXE. You could have an EXE which exposed methods and properties in a form usable by both other processes, including VBScript and JScript. At the same time the EXE could have its own functionality, related or unrelated to that exposed by its type library.
.NET 等价物是什么?
What is the .NET equivalent?
我有一个现有的 VB6 项目,它是一个脚本语言解释器(使用 MSScript)和其他脚本语言的各种工具功能的资源.有人建议我尝试将其转换为 .NET.
I have an existing VB6 project which is a scripting language interpreter (using MSScript) and a resource of various tool functions for other scripting languages. It has been suggested that I try converting it to .NET.
这行得通吗,还是我最终会将一件物品分成两份?
Is this going to work, or will I end up splitting the one item into two?
企业服务将允许您这样做.您可以将 COM 组件运行为:
Enterprise services will allow you to do just that. You can run a COM component as:
互联网上有很多关于这些的例子.归根结底是:
There are numerous examples on the internet about these. What it comes down to is:
希望这会有所帮助.
这篇关于.NET 中是否有相当于进程外 COM EXE 的功能?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!