sending parameter to a running application

  • Thread starter Thread starter Eþref DURNA
  • Start date Start date
E

Eþref DURNA

how could I send a parameter to a runing csharp windows application?
 
How about having a socket listener running in a seperate thread that accepts
values via a tcp connection. You could just have a text file that holds a
value that the app polls for the file being updated and reads the value out.

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 
i found that it could be done by
user32.dll
sendmessage( method
but could not be found a good example or any idea
the tcp and socket can couse problems and i think not a good solution
thanks
 
the tcp and socket can couse problems and i think not a good solution

Odd that you think that, as millions of developers have used socket calls
between running applications practically since the dawn of computing.
Still, there are other approaches.

If you want to use sendmessage, look at pinvoke.net

http://www.pinvoke.net/search.aspx?search=sendmessage&namespace=[All]

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top