Click here to Skip to main content
16,018,797 members
Please Sign up or sign in to vote.
3.00/5 (1 vote)
See more:
I want to know how to Pass data between two separate c++ MFC running applications.
Posted
Comments
Sergey Alexandrovich Kryukov 23-Nov-11 2:11am    
Why?
--SA
Albert Holguin 23-Nov-11 9:12am    
Why not?

Hi,

Hi there are several technique for inter process communication depending also on the OS you are running on.

For Unix :
Signals
Pipes
Message Queues
Sockets
Semaphores
Shared Memory

For detailed information :

IPC Linux[^]


For Windows there :

Clipboard
COM
Data Copy
DDE
File Mapping
Mailslots
Pipes
RPC
Windows Sockets

For detailed information :

IPC Win[^]
 
Share this answer
 
Comments
CPallini 23-Nov-11 4:37am    
My 5. However UNIX/Linux info is insignificant for the OP.
elgaabeb 23-Nov-11 4:43am    
Yes I see. Thx for your comment.
Albert Holguin 23-Nov-11 9:11am    
You're missing some of the important ones like messages in Windows. ...Tried to change my 3 vote to a 4 since you do have a lot of info, but I guess I can't :(
Albert Holguin 23-Nov-11 9:17am    
Nevermind, it let me change it now... ::odd::
elgaabeb 23-Nov-11 9:28am    
I think that mailslot mechanism includes windows messaging. It's Ok for the vote it is already 4'd :).
 
Share this answer
 
Comments
Sergey Alexandrovich Kryukov 23-Nov-11 2:14am    
...or named pipes, or shared memory with some synchronization IPC like named Mutex, or MSMQ, or "PostMessage"... what else?
--SA
Stefan_Lang 23-Nov-11 4:06am    
You forgot 'store in files' ;-)
JackDingler 23-Nov-11 8:00am    
The Registry and databases...
Stefan_Lang 23-Nov-11 8:05am    
Woot, the registry... you win! :-)

I remember a time when I entered my monthly report into an Excel sheet, printed it out, and handed it to a secretary, who then typed it into an Access database. Does that count? :-D
JackDingler 23-Nov-11 8:10am    
Sneakernet counts. :)

I pass my trophy to you good sir!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900