share data between two applications

Hi everybody,

I have two applications that share memory with each other. As I understand it, I can do it either with files or with sockets. I don't want to work with files because It's to slow. I don't really need sockets because actually the two application run on the same machine...The first one application does threading models in a process-based OS (windows XP). The second one must calculate heavy signal processing. I don't want to integrate the second application on the first one because the second one mustn't interrupt the multithreading functionality in the first one.

can you give me some good advice? how is the best way to share data between two applications?

Thank you very much.

Radeberger

Use pipes or a memory mapped file.

Good luck!
Thank you very much,

I read about MMF and it sounds good

Radeberger
> how is the best way to share data between two applications?

You could realize that such a question is a Win32 FAQ for more than 15 years.
See MSDN (WSDK, KB, doc) and Google Groups (Win32 api), where tons of sample codes have been posted in C and C++
the easiest is to use #pragma share region. :)
something like this:

1
2
3
4
#pragma data_seg("SHARED")
int __x = 0;
#pragma data_seg()
#pragma comment(linker, "/section:SHARED,RWS") 
Topic archived. No new replies allowed.