Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. ActiveX and .NET

ActiveX and .NET

Scheduled Pinned Locked Moved C#
csharpcomquestionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    Anonymous
    wrote on last edited by
    #1

    Hello, 1. when adding an ActiveX on a .NET WinForm one or more dlls will be created and added to project. can somebody please explain what are these dlls and what do they do? 2. If there is some version of an ActiveX on a system and my app uses another version (newer or older) of the same ActiveX, what happens if I install and register my version on that system for my app? will some sort of conflict occur?? thank you

    M S 2 Replies Last reply
    0
    • A Anonymous

      Hello, 1. when adding an ActiveX on a .NET WinForm one or more dlls will be created and added to project. can somebody please explain what are these dlls and what do they do? 2. If there is some version of an ActiveX on a system and my app uses another version (newer or older) of the same ActiveX, what happens if I install and register my version on that system for my app? will some sort of conflict occur?? thank you

      M Offline
      M Offline
      MultiThread
      wrote on last edited by
      #2

      Hi, From what I have seen, the DLLs created are the generated interop assemblies used to access the COM object your project uuses. It looks like .NET adds a (arguably) nice wrapper object over COM in order to marshall the calls between the managed code and the component in use. Not all questions answered, sorry. Regards, Joe

      1 Reply Last reply
      0
      • A Anonymous

        Hello, 1. when adding an ActiveX on a .NET WinForm one or more dlls will be created and added to project. can somebody please explain what are these dlls and what do they do? 2. If there is some version of an ActiveX on a system and my app uses another version (newer or older) of the same ActiveX, what happens if I install and register my version on that system for my app? will some sort of conflict occur?? thank you

        S Offline
        S Offline
        Stephane Rodriguez
        wrote on last edited by
        #3
        1. These are called interop assemblies. Interop assemblies are the bridge between the .NET world and the unmanaged world. As you can figure out, interop assemblies forward back and forth COM method calls. Dropping an ActiveX control onto a form is like using the aximp.exe tool from the command line. It imports the type library and then creates one or more dll files, usually 2 with ActiveX components (and only one for a simple "non-visual" COM component). 2) Since the interop assemblies only forward method calls, including the component creation steps, versioning is not worse nor better. The component is eventually instantiated based on its clsid, that's why your .NET code will always try to create that component, not a more recent one.

        RSS feed

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups