R.Wieser
2024-03-07 11:30:47 UTC
Hello all,
I'm using QBasic from DOS 5 in an XPsp3 cmd.exe console, and am trying to
write to a file which is actually a named pipe in a Win32 program.
The thing is that it works when, in QBASIC, I open the file "for binary" and
"put" the data. However, when I open the file "for output" than I can see,
in the Win32 program, the data coming in from the pipe, but the QBASIC
program than throws an "invalid record number" on the "close #hPipe" line -
after which I cannot re-run, save or exit the program (all of which again
show the "invalid record number" error).
tl;dr:
Has anyone ever tried to let QBASIC open a named pipe and wtite to it as if
its a regular text file ? If so, how/as what should I, in the Win32
program, open the named pipe ?
Regards,
Rudy Wieser
I'm using QBasic from DOS 5 in an XPsp3 cmd.exe console, and am trying to
write to a file which is actually a named pipe in a Win32 program.
The thing is that it works when, in QBASIC, I open the file "for binary" and
"put" the data. However, when I open the file "for output" than I can see,
in the Win32 program, the data coming in from the pipe, but the QBASIC
program than throws an "invalid record number" on the "close #hPipe" line -
after which I cannot re-run, save or exit the program (all of which again
show the "invalid record number" error).
tl;dr:
Has anyone ever tried to let QBASIC open a named pipe and wtite to it as if
its a regular text file ? If so, how/as what should I, in the Win32
program, open the named pipe ?
Regards,
Rudy Wieser