473,408 Members | 1,700 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

sending parameter to a running application

how could I send a parameter to a runing csharp windows application?
Nov 20 '05 #1
5 1469
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

"Eþref DURNA" <es*********@mynet.com> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl...
how could I send a parameter to a runing csharp windows application?

Nov 20 '05 #2
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
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:es**************@TK2MSFTNGP15.phx.gbl...
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

"Eþref DURNA" <es*********@mynet.com> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl...
how could I send a parameter to a runing csharp windows application?


Nov 20 '05 #3
Hi,

What you need is called: Interprocess Communication ... (tips: Named Pipes,
Shared Memory)..
... or see: http://www.habjansoftware.com/ipc_library.aspx

Regards,
Josip Habjan

"Eþref DURNA" <es*********@mynet.com> wrote in message
news:uA**************@TK2MSFTNGP10.phx.gbl...
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
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:es**************@TK2MSFTNGP15.phx.gbl...
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

"Eþref DURNA" <es*********@mynet.com> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl...
> how could I send a parameter to a runing csharp windows application?
>
>



Nov 20 '05 #4
WTH
> What you need is called: Interprocess Communication ... (tips: Named
Pipes, Shared Memory)..
.. or see: http://www.habjansoftware.com/ipc_library.aspx


Or simpler, more flexible and useful, just use XML over TCP/IP sockets.

WTH
Nov 21 '05 #5
> 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?s...age&namespace=[All]

--
Regards

John Timney
ASP.NET MVP
Microsoft Regional Director

"Eþref DURNA" <es*********@mynet.com> wrote in message
news:uA**************@TK2MSFTNGP10.phx.gbl...
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
"John Timney ( MVP )" <ti*****@despammed.com> wrote in message
news:es**************@TK2MSFTNGP15.phx.gbl...
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

"Eþref DURNA" <es*********@mynet.com> wrote in message
news:O3**************@TK2MSFTNGP10.phx.gbl...
> how could I send a parameter to a runing csharp windows application?
>
>



Nov 23 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Adlai Stevenson | last post by:
For a Windows Form app, that consumes a web service. I want the option of being able to run this as a scheduled job in a batch mode. The app ( which I call XMailMan) form has two controls, a...
4
by: CoolWriter | last post by:
Hi, While exploring web, I want to send the selected text as a parameter to my application. How can I do this? For instance: When I right click the selected text, my application's name should...
2
by: Jonathan Rea | last post by:
Hi, I have found the code below to detect if a process is already running. This seems to work well, but then how do you sent the main program class in process 1 messages about the command...
9
by: Sandy | last post by:
can mfc application, send text data to opened notepad file in desktop?(live transfer of data) . can anybody help
2
by: Tim Diggle | last post by:
I'm trying to enter data into a database application running under Citrix ICA Client. I'm doing it from a VBA macro running under Microsoft Excel 2000 (although it may need to be backwardly...
2
by: javier.gomez | last post by:
is it possible to send values to a VB.Net exe? For example can I run an exe sending the value of 5 and having the application show a message box with a number 5?
6
by: rekaeps | last post by:
We are developing an ASP.NET 2.0 (C#) application, and I'm having troubles sending e-mail from the server when accessing the web site from a separate client computer. Also, in the same scenario,...
9
by: Miro | last post by:
VB 2003 at the end of the code, this works great. bytCommand = Encoding.ASCII.GetBytes("testing hello send text") udpClient.Send(bytCommand, bytCommand.Length) and this recieves it Dim...
2
by: babp | last post by:
Hi Iam new to perl and need a help to send inputs to an running application : I am running an application XXXX , and when it starts i am passing a file name called "connect.spb" and after the...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

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.