Project "Simple COM Server", where?

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Axel Dahmen

    Project "Simple COM Server", where?

    Hi,

    I'd like to write a simple COM Automation Server in C# but couldn't find a
    matching project. I want to have the IDE maintain the IDL and the REG file
    automatically.

    Which project should I use to achieve this?

    TIA,
    Axel


  • Greg Ewing [MVP]

    #2
    Re: Project "Simple COM Server", where?

    Axel, I would probably just use a class library project type.

    --
    Greg Ewing [MVP]
    Accomplish Your Mission with Better IT | IT support for nonprofits. You deserve peace of mind. National and remote outsourced nonprofit IT.


    "Axel Dahmen" <NoSpam@NoOneKn ows.de> wrote in message
    news:uNttTUbfDH A.3284@tk2msftn gp13.phx.gbl...[color=blue]
    > Hi,
    >
    > I'd like to write a simple COM Automation Server in C# but couldn't find a
    > matching project. I want to have the IDE maintain the IDL and the REG file
    > automatically.
    >
    > Which project should I use to achieve this?
    >
    > TIA,
    > Axel
    >
    >[/color]


    Comment

    • Willy Denoyette [MVP]

      #3
      Re: Project &quot;Simple COM Server&quot;, where?

      If you really want to maintain IDL (and REG) files you will have to use VC++ and ATL, managed languages are self describing using
      embedded metadata, so no IDL files needed.
      It's possible to expose your managed methods to COM clients by applying the correct interop attributes, check the "COM Interop Part
      2: C# Server Tutorial" chapter in the C# reference manual.

      Willy.

      "Axel Dahmen" <NoSpam@NoOneKn ows.de> wrote in message news:uNttTUbfDH A.3284@tk2msftn gp13.phx.gbl...[color=blue]
      > Hi,
      >
      > I'd like to write a simple COM Automation Server in C# but couldn't find a
      > matching project. I want to have the IDE maintain the IDL and the REG file
      > automatically.
      >
      > Which project should I use to achieve this?
      >
      > TIA,
      > Axel
      >
      >[/color]


      Comment

      Working...