Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exchanging messages between two C++ programs

I am new to creating Windows applications in C++. My task is to write two cpp files, one of which will send a number (x) to the other one, the other one will evaluate f(x) and send it back to the first one. I should implement it using Messages. Couldn't get anything specific online, Could someone pls give me a clue, where to start? Great thanx!

like image 340
user1928091 Avatar asked Dec 25 '12 11:12

user1928091


People also ask

How do Windows RT users exchange messages with each other?

They will exchange messages through service bus queues. To be more concrete the service provides API messaging implemented in WindowsAzure.ServiceBus assembly. The simplification of the more or less same functionality is provided by messaging API for Windows RT in assembly Windows.Messaging.Managed.

How to swap numbers in C programming?

This example contains two different techniques to swap numbers in C programming. The first program uses temporary variable to swap numbers, whereas the second program doesn't use temporary variables. To understand this example, you should have the knowledge of following C programming topics: C Data Types. C Programming Operators.

Can we use C++ library swap function also?

We can use C++ library swap function also. How to swap without using a temporary variable?

What is the difference between the first and the second program?

The first program uses temporary variable to swap numbers, whereas the second program doesn't use temporary variables. To understand this example, you should have the knowledge of following C programming topics: C Data Types. C Programming Operators. C Input Output (I/O)


1 Answers

Are you talking about window messages? If so, the sending app could use SendMessage, which would cause the receiving app to get its window procedure executed. Of course, this means that the receiving app needs to create a window whose window handle is somehow made available to the sending app.

like image 178
user1610015 Avatar answered Sep 20 '22 17:09

user1610015