PC Review


Reply
Thread Tools Rate Thread

COM access to a running instance

 
 
DM
Guest
Posts: n/a
 
      29th Oct 2008
Hi,

I have a C# aplication which I have exposed some of the classes\interfaces
so that they can be accessed via COM. This works except that it appears not
to connect to the runnign instance of application.

Is this possible and if so, how?

thnaks for your time
DM


 
Reply With Quote
 
 
 
 
Jeroen Mostert
Guest
Posts: n/a
 
      29th Oct 2008
DM wrote:
> I have a C# aplication which I have exposed some of the classes\interfaces
> so that they can be accessed via COM. This works except that it appears not
> to connect to the runnign instance of application.
>
> Is this possible and if so, how?
>

What you're asking for is an out-of-process COM server. .NET doesn't support
those, you can only produce in-process libraries.

You can write such a library and have it communicate with your application
via remoting. You have to decide on a mechanism to discover the application
yourself, and there's a possible performance hit, but it's the closest thing
to your scenario.

You can also write a COM+ component in .NET and have it hosted by MTS, but
then you can't have that as an application with an interface (as far as I
know). You can, of course, have your application communicate with that
component also.

If your client is .NET as well, don't use COM at all and just go for remoting.

--
J.
 
Reply With Quote
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How To Remove An Instance of Access From the Running Objects Table Stewart Berman Microsoft Access Security 3 6th Jan 2011 05:35 AM
Single-instance app: how to force running instance window to foreground? Jen Microsoft C# .NET 6 3rd Apr 2007 10:04 PM
Check if instance of exe is running already =?Utf-8?B?Um9i?= Microsoft C# .NET 4 20th Mar 2007 09:44 PM
How to find a running Excel instance and access the worksheets in it. Gary Luo Microsoft Excel Programming 2 15th Feb 2006 05:07 PM
Is another instance of Access running Dale Fye Microsoft Access Form Coding 4 16th Aug 2005 02:55 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:18 PM.