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. COM
  4. Registration Free COM / COM Interop

Registration Free COM / COM Interop

Scheduled Pinned Locked Moved COM
comtoolsquestion
4 Posts 3 Posters 12 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.
  • M Offline
    M Offline
    Michael Salzlechner
    wrote on last edited by
    #1

    I have a very simple dot net library that uses COM Interop and a simple test program in VB that uses CreateObject to instantiate the COM component. This works fine if I register the dot net library using REGASM but I cannot get it to work with a side by side manifest. I tried creating the manifest manually as well as using a number of different tools. The manifests look fine but it is unable to create the COM object. Is there anything special I am missing? any ideas what to look for? thanks Mike

    F 1 Reply Last reply
    0
    • M Michael Salzlechner

      I have a very simple dot net library that uses COM Interop and a simple test program in VB that uses CreateObject to instantiate the COM component. This works fine if I register the dot net library using REGASM but I cannot get it to work with a side by side manifest. I tried creating the manifest manually as well as using a number of different tools. The manifests look fine but it is unable to create the COM object. Is there anything special I am missing? any ideas what to look for? thanks Mike

      F Offline
      F Offline
      F ES Sitecore
      wrote on last edited by
      #2

      You have to register your component using regasm and you can't do things like side-by-side. Although your component is written in .net, it is exposing itself via COM and COM is registry based and you can't leverage .net features like just loading assemblies from a directory. When you use REGASM it creates the required registry entries that give the exact location of your assembly to load when a COM client asks for your component.

      D 1 Reply Last reply
      0
      • F F ES Sitecore

        You have to register your component using regasm and you can't do things like side-by-side. Although your component is written in .net, it is exposing itself via COM and COM is registry based and you can't leverage .net features like just loading assemblies from a directory. When you use REGASM it creates the required registry entries that give the exact location of your assembly to load when a COM client asks for your component.

        D Offline
        D Offline
        DriveByCoder
        wrote on last edited by
        #3

        Not true. COM works with side x side. I've done it myself but have to confess it is a while since I have done it. (Only visiting the COM forum for nostalgia)

        F 1 Reply Last reply
        0
        • D DriveByCoder

          Not true. COM works with side x side. I've done it myself but have to confess it is a while since I have done it. (Only visiting the COM forum for nostalgia)

          F Offline
          F Offline
          F ES Sitecore
          wrote on last edited by
          #4

          I meant COM doesn't work easily side-by-side in the .net sense, but yes you can use the sxs framework to make side by side com assemblies. However re-reading the original question I think he was talking about registration free COM manifest files over standard registry-based registration. https://msdn.microsoft.com/en-us/library/fh1h056h(v=vs.110).aspx[^] But I think that only applies to .net clients, not the likes of VB.

          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