Click to See Complete Forum and Search --> : How to pass a BYTE* from a DOS program to others?


Gladywin Yap
June 14th, 1999, 11:52 PM
Hi all,
I wish to write 2 exe files. One acts as the caller while the other is the one being called.

Basically, the caller will call an EXE file and this EXE file is supposed to return a BYTE* stream to the caller. Is this way of doing possible?

Let's call the caller as Caller.exe and the other Worker.exe.

Basically, what I want to do is to run the Caller.exe so that it will call the Worker.exe, with some parameters in the command line and then the worker is supposed to return a BYTE* stream.

What I have tried here is to use the function fwrite to write to 'stdout' in Worker.exe and the function fread in Caller.exe to read from 'stdin'. Is this the right way to do this?

Any comments, sample codes will be greatly appreciated.




Gladywin
150699