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 ?
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 ?
To text/check I just wrote a small DOS program using INT 21h calls to open (AX=3D01h), write to(AH=40h) and close (AH=3Eh) the pipe. As far as I can tell that works without a problem.
IOW, the problem might be QBASIC ...
Does your program *need* to be in QBasic?
but QBasic is somewhat limited in what it can and cannot do
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
JJ,
I do not know what your game is, but I disagree with most anything you said there.
It also doesn't help that you're rather ambigue and seem to be making a
claim that opening a file using a certain open mode can turn it from a character device into a block device.
Its almost as if you're out to sow confusion ...
Regards,
Rudy Wieser
Then I don't think you know the difference between the two.
The thing is that it works when, in QBASIC, I open the file "for binary"
and "put" the data.
Then I don't think you know the difference between the two.
Than now is your chance to educate me to what (you think) a "character device" and "block device" are.
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 300 |
Nodes: | 16 (2 / 14) |
Uptime: | 91:10:51 |
Calls: | 6,697 |
Calls today: | 2 |
Files: | 12,232 |
Messages: | 5,348,574 |