sending message to app on other computer

  • Thread starter Thread starter Sput
  • Start date Start date
S

Sput

Again me

My program is running on a client computer, while on a server is running a
C++ application.
I need to send a message containing some numbers to it from time to time.
I was thinking of using sendmessage, but how to find target program on
another computer?
 
In this case you will have to use DCOM (did I say that?), remoting, or a web
service.

You can either create an intermediary, or "middleware", app on the server to
handle communications with the client(s) or you can build the functionality
directly into the server app. Without knowing the details of what you're
trying to accomplish I would lean toward the first solution - a middlware
app to handle remoting with the client. You can see the remoting samples in
the .Net Framework SDK Documentation by looking up "Remoting samples" in the
index.

At that point, you can decide whether to use remoting (the preferrred method
at this point) to get the message to the server or to use the SendMessage
API. Since you'll have created a remoting application anyway, at this point
I'd go all remoting and skip SendMessage.

Dale
 
Back
Top