1. RE: Win32 redirection problem
- Posted by Bernie Ryan <xotron at localnet.com> Jun 16, 2001
- 385 views
Rolf Schroeder wrote: > Hi Rob, > > I try to use an Win32 binded executable as an CGI interface program with > the POST method. I'm using the Xitami server under WinNT4.0. I do have a > serious problem with STDIN/OUT. > I checked the functioning of redirection under a binded DOS32 program as > well under an binded Win32 program, both in an command window, and I > found that only the DOS32 program did the right job! Why is it not > working under Win32? > I think that STDIN/OUT should not only work under the DOS32 version but > also under the Win32 version. > > Do you have any idea/recommendation how to solve this problem? > > Have a nice day, Rolf > Rolf: This may have something to do with problem, go here. http://support.microsoft.com/support/kb/articles/Q150/9/56.ASP Bernie
2. RE: Win32 redirection problem
- Posted by Bernie Ryan <xotron at localnet.com> Jun 16, 2001
- 367 views
Rolf Schroeder wrote: > Thanks Bernie, > > but I'm interested only in 32 bit WinNT applications, and just those > don't work with redirection, i.e., STDIN and STDOUT. > > Have a nice day, Rolf > Doctor Rolf I read some where that in winnt the file discriptors for NT may not be garanteed. Maybe you should try named pipes, I think somebody has written code in the archives for using named pipes. Bernie
3. RE: Win32 redirection problem
- Posted by Bernie Ryan <xotron at localnet.com> Jun 20, 2001
- 385 views
Rolf Schroeder wrote: > serious problem with STDIN/OUT. Rolf: If you are using a windows console app. You can use this function to get the handles for CGI. HANDLE GetStdHandle(DWORD nStdHandle) STD_INPUT_HANDLE = (DWORD)-10 STD_OUTPUT_HANDLE = (DWORD)-11 STD_ERROR_HANDLE = (DWORD)-12 Bernie