| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | OS/2 Window |
Hello Craig! Replying to a message of Craig Morrison to Ed Becker: CM> Ed Becker doth sayeth in a message unto All: EB>> I'd also like to go the other way: I would like to send anything the EB>> program has coming out of stdout and send it to a pipe. Peter EB>> Fitzsimmons did this with Maxpipe, but going to a com port if memory EB>> serves me correct. I'd need it from a PIPE so I could pick it up in EB>> another process. CM> This should give you some ideas: CM> #define INCL_DOSQUEUES /* Queue values */ CM> #include CM> #define PIPESIZE 256 CM> #define HF_STDOUT 1 /* Standard output handle */ CM> HPIPE hpR, hpW; CM> RESULTCODES resc; CM> ULONG cbRead, cbWritten; CM> CHAR achBuf[PIPESIZE], szFailName[CCHMAXPATH]; Much appreciated! As soon as you started showing some sample code, I CTL-ESC over to my CP guide. There it was, right in front of me. Redirecting standard output. Thanks for the sample code. I was attacking trying to query the handle of the window of a windowed session. Wasn't working... The code you sent me fits right in with what I need. Thanks again. Bye, Ed! --- FleetStreet 0.95wb* Origin: The Land Of Mordor/2 - (904) 532-0471 (1:3618/7) SEEN-BY: 12/2442 54/54 620/243 624/50 632/348 640/820 690/660 711/409 410 413 SEEN-BY: 711/430 807 808 809 934 942 949 712/353 623 713/888 800/1 @PATH: 3618/7 5 12 3615/50 229/2 12/2442 711/409 54/54 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.