473,545 Members | 2,081 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Send and receive messages to and from applications

Hi all!

Is there a possibility to send messages from one application to another,
never minding if it is a .NET or a COM application?
The other application should "listen" whether there are Messages being sent
to it, and if so, respond itself with a message to the sender application.

Thanx for your hints.
Greetings

Gerald
Nov 21 '05 #1
8 1470
Hi,

Take a look at remoting.
http://msdn.microsoft.com/library/de...roremoting.asp

Ken
---------------
"Gerald Bader" <ge****@gmx.a t> wrote in message
news:uU******** ******@TK2MSFTN GP11.phx.gbl...
Hi all!

Is there a possibility to send messages from one application to another,
never minding if it is a .NET or a COM application?
The other application should "listen" whether there are Messages being sent
to it, and if so, respond itself with a message to the sender application.

Thanx for your hints.
Greetings

Gerald

Nov 21 '05 #2
Hello!

This assumes that the applications both are written in .NET

I need something that is independent of .NET - i.e. something that Windows
is offering (Message-Queues?).
Gerald
Nov 21 '05 #3
Gerald,

There are more articles on MSDN

http://msdn.microsoft.com/library/de...ctmessaque.asp

I hope this helps?

Cor

"Gerald Bader" <ge****@gmx.a t>

..
Hello!

This assumes that the applications both are written in .NET

I need something that is independent of .NET - i.e. something that Windows
is offering (Message-Queues?).
Gerald

Nov 21 '05 #4
"Gerald Bader" <ge****@gmx.a t> schrieb:
Is there a possibility to send messages from one application
to another, never minding if it is a .NET or a COM application?


Maybe you can set up communication using sockets, or (I have never worked
with it) MSMQ.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #5
In the past I used a TCP socket and just had my apps listening on the
specified port. then it becomes easy to get the apps talking.

Bob

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:uu******** *****@tk2msftng p13.phx.gbl...
"Gerald Bader" <ge****@gmx.a t> schrieb:
Is there a possibility to send messages from one application
to another, never minding if it is a .NET or a COM application?


Maybe you can set up communication using sockets, or (I have never worked
with it) MSMQ.

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>

Nov 21 '05 #6
Hi!

Do you know where to get any sample code for TCP communication between
applications?
Or maybe some for UDP?
Gerald
Nov 21 '05 #7
It's the same as if you communicating with a separate machine. Program A
would need to listen on a given port on 127.0.0.1. Program B would then
just connect to that port on 127.0.0.1.

In case you don't know it, 127.0.0.1 is a reserved IP Address which
represents the local computer.

Richard Rosenheim
"Gerald Bader" <ge****@gmx.a t> wrote in message
news:%2******** ********@TK2MSF TNGP10.phx.gbl. ..
Hi!

Do you know where to get any sample code for TCP communication between
applications?
Or maybe some for UDP?
Gerald

Nov 21 '05 #8
What kind of messages? The other posts sound good if you are sending data
that is particular to your application. But just wanted to add--if by
"messages" you mean standard Window messages, then the SendMessage API might
do the trick for you a little more easily.

Just in case.

Brian
--

Brian Schwartz
FishNet Components
http://www.fishnetcomponents.com
Building better tools for developers - Be part of it!


Nov 21 '05 #9

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

Similar topics

6
4618
by: Ray Paseur | last post by:
We broadcast email messages with PHP scripts, but sometimes email is not timely and we would like to send something that could get there faster. Can anyone tell me about how to send Instant Messages (Y, AOL, MSN, Trillian, etc.) or SMS from within a script? Please copy your reply off group to "access (a) NatPresCh .org" - hopefully I will...
4
4833
by: Robert Rossney | last post by:
I'm trying to send and receive XmlDocument objects using the System.Messaging.dll functions. The code I've written follows, as best I can tell, the methodology used in the sample code for the XmlMessageFormatter class. But it isn't working -- specifically, receiving isn't working. What am I doing wrong here? I begin by creating a...
1
3339
by: Alfred B. Thordarson | last post by:
Hi All. I have this weird problem that on my devlepment machine (Windows XP) I don't receive MultiCast messages that I send from my machine. This means that my two processes can't communicate using MultiCast if they both run on the same machine. I have created a small MultiCast "server" which is listening for messages on 224.100.0.1:8932...
3
9392
by: Mark | last post by:
Hi all, about 2 years ago I wrote a small utility that was used to send and receive SMS messages via a mobile phone (3rd party COM object as used as interface). I now have to write another program that does pretty much the same thing. My old program simply sent and received SMS messages via a Nokia phone connected to the computer running...
1
2921
by: Kueishiong Tu | last post by:
How do I send and receive internet messages using socket in the .net VC++ environment? Coding sample will be helpful.
11
7679
by: hazz | last post by:
smtpClient.Send(message) is causing me problems as per specifics in the trace below. Email is sent but not without this error typically upon sending the second email, but sometimes when running the app, even the first time. The application will be required to be sending out repeated emails, about one every second or two. Must this be...
2
4611
by: SammyBar | last post by:
Hi all, I'm trying to send a message from ASP.NET to another PC by using MSMQ. I created my ASP.NET project by using Visual Studio 2005 but I initially set the project to be located on the File System. Then I could successfully send, receive and purge the public queries I use to exchange information with the another PC. But when I realized...
2
3594
by: rodrigofsilva | last post by:
Dear, by chance somebody already got to send and to receive files for protocol Multicast in C #. I am to send messages and to receive messages but files are not getting. In case somebody has already done. Thank you
2
1530
by: SvenV | last post by:
I based my program on the asynchronous client/server example on msdn. There weren't too many modifications to the original code. I just created some extra code to response to different messages. F.e. when I send GETARTICLES<EOF> it gets the articles from the DB and when I send something else it does that specific task. That all works fine. The...
0
7401
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7656
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
7808
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that...
1
7423
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For...
1
5329
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes...
0
4945
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3443
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1884
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
0
704
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.