By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
454,424 Members | 1,351 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 454,424 IT Pros & Developers. It's quick & easy.

sending message to app on other computer

P: n/a
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?
Nov 15 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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


"Sput" <sp********@post.htnet.hr> wrote in message
news:c0**********@ls219.htnet.hr...
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?

Nov 15 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.