Exposing interfaces of a C# executable(.EXE) application
-
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
-
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
-
Then you're only interface of choice would be COM.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
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
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.
-
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.
-
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
-
Then you're only interface of choice would be COM.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak -
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
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