none
Visual studio 2019 doesn't generate wrappers for Activex/OCX RRS feed

  • Question

  • Back in VS2017, when referencing an OCX two files were created and referenced:

    • Interop.XYZLib.dll
    • AxInterop.XYZLib.dll

    from there I was able to create a wrapper around AxInterop.XYZLib.dll that exposes the methods and properties of the OCX as if they are native. Now after installing VS2019 only Interop.XYZLib.dll is generated. Even if I go back to VS2017 the behavior is the same, only one is generated, and trying to use it causes a catastrophic failure. Other answers suggest to use AxImp.exe, I tried, only to have an error saying "Did not find a registered ActiveX control in ...", that's confusing since the OCX is registered with RegSvr32.exe, any ideas?

    Thank you

    Luis


    Luis


    Thursday, July 9, 2020 12:00 PM

Answers

All replies