Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/.net/23.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
.net AxiInterop和Interop之间有什么区别?_.net_Com_Interop_Activex_Ocx - Fatal编程技术网

.net AxiInterop和Interop之间有什么区别?

.net AxiInterop和Interop之间有什么区别?,.net,com,interop,activex,ocx,.net,Com,Interop,Activex,Ocx,我在VS中的工具箱中添加了一个.ocx。 创建了两个.dll:Interop.NNN.dll、AxInterop.NNN.dll 每个是什么?它们都是必需的吗?Interop.xxx.dll和AxInterop.xxx.dll分别是引用COM和ActiveX dll的运行时可调用包装器(RCW) interop.xxx.dll纯粹是一个自动化(COM dll)包装器,使您能够在应用程序的命名空间内操作对象。AxInterop.xxx.dll是ActiveX控件的控件包装,可以将其拖到窗体上。Ax

我在VS中的工具箱中添加了一个.ocx。 创建了两个.dll:Interop.NNN.dll、AxInterop.NNN.dll


每个是什么?它们都是必需的吗?

Interop.xxx.dll和AxInterop.xxx.dll分别是引用COM和ActiveX dll的运行时可调用包装器(RCW)


interop.xxx.dll纯粹是一个自动化(COM dll)包装器,使您能够在应用程序的命名空间内操作对象。AxInterop.xxx.dll是ActiveX控件的控件包装,可以将其拖到窗体上。

AxFoo.dll程序集包含从System.Windows.Forms.AxHost控件派生的自动生成的类。它非常简单,它有方法、属性和事件,与.ocx中提供的方法、属性和事件相同,它们只是调用Foo.dll互操作库


所以,是的,您肯定需要同时部署这两个程序集。

所以我需要同时部署这两个程序集?我将在窗体上使用该控件。在我使用MapPoint的情况下,似乎两者都是必需的。我猜Axintero.xxx.dll在某些情况下引用Interop.xxx.dll,但我没有费心在Reflector中打开它来验证这一点。我需要在pc中安装这两个组件来运行.net fmw 4.6应用程序吗?