What is the difference between AxInterop and Interop?

22,029

Solution 1

The AxFoo.dll assembly contains an automatically generated class that's derived from the System.Windows.Forms.AxHost control. It is pretty simple, it has methods, properties and events, the same ones you have available in the .ocx, that simply call the Foo.dll interop library.

So, yes, you definitely need to deploy both assemblies.

Solution 2

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.

Share:
22,029
Yaron Naveh
Author by

Yaron Naveh

Web Services Performance, Interoperability And Testing Blog - WCF, Axis2, WSIT... blog twitter

Updated on July 09, 2022

Comments

  • Yaron Naveh
    Yaron Naveh almost 2 years

    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?

  • Yaron Naveh
    Yaron Naveh about 14 years
    So I need to deploy both? I will use the control on a form.
  • jpierson
    jpierson almost 11 years
    It appears that in my case with MapPoint both were needed. My guess is that AxInterop.xxx.dll references Interop.xxx.dll in some cases but I haven't bothered to open it up in Reflector to verify this.
  • Slinker
    Slinker over 6 years
    Do I need install this 2 components in pc to run my .net fmw 4.6 application ?