Click to See Complete Forum and Search --> : DOS <-> Windows Communication


J.P.M.-SOFT
May 17th, 1999, 09:43 AM
Hello all,
I'm looking for a way to communicate between a DOS-TSR and my windows program. Is there a methode of sending messages or wath so ever form a dos window to my windows program.
What I want to do is intercepting dos output to an LPT-port and sending the characters to my windows program. If someone has an other ide fo a solution, you'r welkome.

Greetings,
jpmsoft@glo.be


Jean Paul Mertens
ON1AMI
jpmsoft-at-glo.be (repl -at- with @)
http://user.online.be/~gd30347

Masaaki
May 17th, 1999, 10:22 AM
Hi.

I don't understand your desire exaclty, but how about this.

Dos - Client - Socket programming with DOS.
Window - Server - Socket programming with Windows.

HTH.
-Masaaki Onishi-

J.P.M.-SOFT
May 17th, 1999, 11:29 AM
Hello,

The goal of my problem is that I wrote a program to print from Dos programs to Windows only printers. The program works fine if the Dos program can print to a file, but a great number of dos programs can’t do this. So I wrote a TSR program capturing the LPTx interrupt and writing all characters to a file. The problem is however that my TSR don’t know when the printjob is finished and that my server side don’t know if he can open the file to print it. The file is created on starting the TSR and closed on stopping the TSR.
So I thought if I could send my information directly to my server I can interprete characters and control codes as much as I want, the TSR has to be small to not consume to much memory. For the same reason I think that using sockets will be to much overhead in the dos-memory.
I have found a DOS Interrupt to render control from the dos-box prematurely to Windows so I thought perhaps some mechanism exists to exchange on a ‘little memory consuming base’ information between my Dos-Box and my server.

Greetings,



Jean Paul Mertens
ON1AMI
jpmsoft-at-glo.be (repl -at- with @)
http://user.online.be/~gd30347