136
Programming / Re: problems programming a new text window for cmd.exe/4os2.exe
« on: February 15, 2020, 02:57:27 pm »Quote
Are you issuing a DosClose call on the pipe from the server application?The server app (the PM editor) calls:
DosCreateNPipe
DosConnectNPipe (waits for DosOpen on client)
Meanwhile, the client (the helper which executes cmd.exe) calls DosOpen
Then the server continues. I do not use DosOpen in the server.
When the program gets finished, the client runs DosClose first. Then the server calls DosDisconnectNPipe.
I assumed that in the server I only have to use DosCreateNPipe, then Connect and Disconnect which is a substutute for DosOpen and DosClose. So do I have to use both DosOpen and DosClose in the server app or only DosClose?
------------
Quote
Isn't the user seeing the contents of stdout?Yes, the user sees stdout in the PM editor immediately. But the PM editor has to know whether to send each keyboard user input character to cmd.exe immediately (within a sub program) or (prompting/idle) to wait until the user presses Enter.