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. COM and COM+ in C#

COM and COM+ in C#

Scheduled Pinned Locked Moved C#
csharpcomtutorial
2 Posts 2 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.
  • M Offline
    M Offline
    mohd rafi
    wrote on last edited by
    #1

    how to create the COM and COM+ Program in c# m mohamad rafi

    M 1 Reply Last reply
    0
    • M mohd rafi

      how to create the COM and COM+ Program in c# m mohamad rafi

      M Offline
      M Offline
      Mohamad Al Husseiny
      wrote on last edited by
      #2

      You Can Create COM+ Application in .Net By Create your dll and inherit your class from ServicedComponent and assign Your assembly and each of its classes with distinct GUID values by using the Guid attribute if you don't give it guide value it in the following assembly registeration will assign one for each element But as you now Com+ undersatnd COM not .Net Component so to let other COM Client Find and Use your component you need to register your .Net Component as COM Server in Windows Registry This process called Asssembly Registration 1-sign a .NET assembly using the Strong Name tool (sn.exe). 2-Register your assembly You can do it by more than one way for example in your Project Properties change Register for COM Interop option to true or Use the Assembly Registration tool regasm.exe for more info look at Creating COM+ Objects using EnterpriseServices in .NET [^] COM/COM+[^] ServicedComponent Class[^] To Export your Component As COM Type Libraries You Can use the tools mentioned above but notice that you don not have to inhiret from ServicedComponent ie 1-Create Your Component 2-Export it as Type Lib By Using one of the following tools *-In Project Properties Set Register for COM Interop option to true *- Use the Assembly Registration tool (regasm.exe) with its /tlb option *-Use the Type Library Exporter tool (tlbexp.exe) MCAD -- modified at 14:52 Thursday 29th September, 2005

      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