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. Exposing interfaces of a C# executable(.EXE) application

Exposing interfaces of a C# executable(.EXE) application

Scheduled Pinned Locked Moved C#
csharpcomhelpquestion
9 Posts 5 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
    Akt_4_U
    wrote on last edited by
    #1

    Hi All, I am new to .NET platform. I have a C#.NET executable(.EXE) application. I would like to expose some interfaces for my client applications. What are the possible options for doing this? Some of my ideas are.. 1. Exposing interfaces via COM Interop 2. Using .NET remoting Please help.

    prvn

    _ A 2 Replies Last reply
    0
    • A Akt_4_U

      Hi All, I am new to .NET platform. I have a C#.NET executable(.EXE) application. I would like to expose some interfaces for my client applications. What are the possible options for doing this? Some of my ideas are.. 1. Exposing interfaces via COM Interop 2. Using .NET remoting Please help.

      prvn

      _ Offline
      _ Offline
      _Erik_
      wrote on last edited by
      #2

      I think WCF[^] is better.

      A 1 Reply Last reply
      0
      • _ _Erik_

        I think WCF[^] is better.

        A Offline
        A Offline
        Akt_4_U
        wrote on last edited by
        #3

        what happens if my client applications are not using .NET?

        prvn

        D _ P 3 Replies Last reply
        0
        • A Akt_4_U

          what happens if my client applications are not using .NET?

          prvn

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          Then you're only interface of choice would be COM.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak

          A 1 Reply Last reply
          0
          • A Akt_4_U

            Hi All, I am new to .NET platform. I have a C#.NET executable(.EXE) application. I would like to expose some interfaces for my client applications. What are the possible options for doing this? Some of my ideas are.. 1. Exposing interfaces via COM Interop 2. Using .NET remoting Please help.

            prvn

            A Offline
            A Offline
            Abhinav S
            wrote on last edited by
            #5

            Akt_4_U wrote:

            Some of my ideas are.. 1. Exposing interfaces via COM Interop2. Using .NET remoting

            If you are using C#, hese are both old technologies. Web services might be a better idea.

            The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it. My latest tip/trick Visit the Hindi forum here.

            1 Reply Last reply
            0
            • A Akt_4_U

              what happens if my client applications are not using .NET?

              prvn

              _ Offline
              _ Offline
              _Erik_
              wrote on last edited by
              #6

              That depends on what your clients are using. If, for example, your clients are using Java, you can find something about WCF-Java interoperatibility here[^]. If your clients are using COM+, here[^] is a point of start for WCF-COM+ interoperability. You just have to search for WCF-(technology) interoperability, whichever the technology of your clients is.

              1 Reply Last reply
              0
              • A Akt_4_U

                what happens if my client applications are not using .NET?

                prvn

                P Offline
                P Offline
                Pete OHanlon
                wrote on last edited by
                #7

                WCF does not limit the subscribing applications to .NET. Remember that WCF is a communications technology and you can subscribe using pretty much any of the standard comms mechanisms, such as named pipes or TCP.

                I have CDO, it's OCD with the letters in the right order; just as they ruddy well should be

                Forgive your enemies - it messes with their heads

                My blog | My articles | MoXAML PowerToys | Onyx

                1 Reply Last reply
                0
                • D Dave Kreskowiak

                  Then you're only interface of choice would be COM.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak

                  A Offline
                  A Offline
                  Akt_4_U
                  wrote on last edited by
                  #8

                  Is there any method to expose COM interface from C# executable(EXE)? All examples I have seen were to expose COM interface from C# class library. Please help.

                  prvn

                  D 1 Reply Last reply
                  0
                  • A Akt_4_U

                    Is there any method to expose COM interface from C# executable(EXE)? All examples I have seen were to expose COM interface from C# class library. Please help.

                    prvn

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #9

                    There's serveral different ways of exposing your objects through COM. None of them are what I would call ".NET easy". Which method is best for you depends on your skill level, COM knowledge, Win32 API experience, ... Google for "C# out of process COM server" or "C# DCOM Server" and you'll get a ton of articles, opinions, pitfalls, and examples, but little in the way of documentation.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak

                    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