471,627 Members | 1,460 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,627 software developers and data experts.

Running app accepting commands

Hi,

I'm designing an application, and I would like to be able to receive
external commands... I would like a behavior like eMule, when you click
on an ed2k link, the link is added to eMule, even if this app is running...

How can I handle this behavior in my app ?

TIA
Dec 5 '05 #1
2 1132
Franck,

In this case, you have to create an asynchronous pluggable protocol (in
the case of IE). This will allow you to handle your own url scheme.
However, you have to implement it through COM interop, as there is no .NET
way to do it.

Then, when the link is processed, if the app is running (I recommend
having a unique named mutex which is held by the running instance of your
app), you can then use remoting to communicate with it.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Franck Diastein" <fd*******@euskaltel.net> wrote in message
news:O5****************@TK2MSFTNGP11.phx.gbl...
Hi,

I'm designing an application, and I would like to be able to receive
external commands... I would like a behavior like eMule, when you click on
an ed2k link, the link is added to eMule, even if this app is running...

How can I handle this behavior in my app ?

TIA

Dec 5 '05 #2
Thank you, but I didnt explain correctly my problem...

I will do a new post.

Nicholas Paldino [.NET/C# MVP] wrote:
Franck,

In this case, you have to create an asynchronous pluggable protocol (in
the case of IE). This will allow you to handle your own url scheme.
However, you have to implement it through COM interop, as there is no .NET
way to do it.

Then, when the link is processed, if the app is running (I recommend
having a unique named mutex which is held by the running instance of your
app), you can then use remoting to communicate with it.

Hope this helps.

Dec 6 '05 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

3 posts views Thread by Hal Vaughan | last post: by
9 posts views Thread by Brian Roberts | last post: by
1 post views Thread by stealthwang | last post: by
8 posts views Thread by Paul Cochrane | last post: by
9 posts views Thread by kapsi | last post: by
reply views Thread by leo001 | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.