What is the difference between AxInterop and Interop?

后端 未结 2 1337
醉酒成梦
醉酒成梦 2021-02-12 15:08

I\'ve added an .ocx to the toolbox in VS. Two .dll\'s were created: Interop.NNN.dll, AxInterop.NNN.dll.

What is each one? Are they both required?

2条回答
  •  不思量自难忘°
    2021-02-12 15:38

    Interop.xxx.dll and AxInterop.xxx.dll are runtime callable wrappers (RCW) for a referenced COM and an ActiveX dll respectively.

    interop.xxx.dll is purely an automation (a COM dll) wrapper, enabling you to manipulate the object within the namespace of your application. AxInterop.xxx.dll is a control wrapper for a ActiveX control, which can be dragged onto the form.

提交回复
热议问题