Having trouble reading from another program

Jul 20, 2009 at 8:40pm
I am working on building a program that takes messages from another program and using various methods, sends messages back to that program.

I'm trying to figure out how to get a message from a program that is always producing messages, get my program to read it, and act accordingly. Maybe just a sample one would help, I read a whole manual and couldn't find anything on what I was trying to find.

I don't mean take it from a program that I already made, the program I want to take the messages from I downloaded quite a bit ago.

Any help would be awesome. Thank you. If there are any questions that could help you help me, I don't mind them.

Thank you for reading this all.
Jul 20, 2009 at 11:18pm
closed account (S6k9GNh0)
You need to use Operating System based calls for this. Look inside of the MSDN for more info and function names. There should be something like ReadProcessMemory function knowing Windows...
Jul 20, 2009 at 11:22pm
Here's a link to the function he mentioned. I'm not sure if this is what you want, but here it is:

http://msdn.microsoft.com/en-us/library/ms680553%28VS.85%29.aspx
Jul 21, 2009 at 12:49am
Maybe I'll try and say this.

I'm am playing a mud, and using the programs Zmud and Mushclient to play said games. They are text games and kind of work almost like a chat room. Well I'm trying to figure out how to take a line from the zmud program and use a program I make to send a command back to zmud for instance...
Jul 21, 2009 at 1:15am
To tell you the truth, I did not understand you meaning clearly. So I just reply as I thought.

1. What is the relationship between with you TWO programs. There are in the same computer, or there are over network, such as one is client, the other is server?

2. If there are in the same computer, you should use some knowledge called IPC(Inter Process Communication). In linux, there are five methods: semaphore, message queue, pipe, share memory and signal. as for which method should you use, this is according to you actually implementation.

3. If you are over network, this is more simple. Just connect to the server from client, then send/get message is OK.
Jul 21, 2009 at 1:16am
For now, it will be on the same computer, but possibly later on a network.
Jul 21, 2009 at 1:26am
OK. xaothitl,

If you have to two design module, you have to design two software architectures also, because

these two situations were QUIT different.

For now, you should use IPC.

By the way, what is you OS?
Jul 21, 2009 at 1:28am
I mostly use Vista, but I have an unbuntu (wubi :( ) that I can use. I am using microsoft visual C++ express to do my stuff currently. I will be trying to do this local (on the comp first)
Jul 22, 2009 at 3:07pm
Where can I find stuff on how to use IPC?
Topic archived. No new replies allowed.