Applictions Communication problem
-
Hello! I have 2 programs, one that waits for messages that the other posts for him. I need somehow to share my handle with the sending application so when I start the program, it will get the handle somehow and post a message to him and so on. The registry is one way but I don't like, a temp file is another but I don't like it either... There's got to be something better and elegant, some function I'm missing Any ideas? Thanks.
-
Hello! I have 2 programs, one that waits for messages that the other posts for him. I need somehow to share my handle with the sending application so when I start the program, it will get the handle somehow and post a message to him and so on. The registry is one way but I don't like, a temp file is another but I don't like it either... There's got to be something better and elegant, some function I'm missing Any ideas? Thanks.
I don't know if DDE is still used widely, but you can take a look in the MSDN. As for the temporary file idea, you can use a CMemFile. Quote from MSDN: A memory file is useful for fast temporary storage or for transferring raw bytes or serialized objects between independent processes. INTP "The more help VB provides VB programmers, the more miserable your life as a C++ programmer becomes." Andrew W. Troelsen