|
-
June 14th, 1999, 11:52 PM
#1
How to pass a BYTE* from a DOS program to others?
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|