turtlemaster
Programmer
I am writing an application that must communicate with an older application developed in C++ 4.0. I am not involved with the development on the C++ application but it is the main system currently in place now and cannot be modified much. I also do not get to pick the communication methods that our apps are to use. We are going to communicate via anonymous pipes which so far I think I will be able to figure out with the right API calls. CreatePipe, WriteFile and ReadFile. The problem lies with the initiation of the communication. The C++ app will be creating an instance of my app (using CreateProcess) and pass my app the hWrite handle to the pipe in StdIn. For the life of me I cannot figure out how to:
1.) get a handle to StdIn unless my app is a console app.
2.) read the data passed to me in stdin. (I assume I would used ReadFile)
Any direction would be greatly appreciated as administrator set a deadline of yesterday.
Thanks in advance.
1.) get a handle to StdIn unless my app is a console app.
2.) read the data passed to me in stdin. (I assume I would used ReadFile)
Any direction would be greatly appreciated as administrator set a deadline of yesterday.
Thanks in advance.