Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

read a return code from LPT port

Status
Not open for further replies.

KateCM

Programmer
Oct 7, 2002
2
FR
I would like to read a return code from an parallel port.
I open a LPT port as OUTPUT
I have an EPSON printer with a drawer behind it
I send a command to the printer to know the drawer state (close or open)
When I want to read the state with an INPUT$, quickbasic tell that it can't read from an output file; but I can only open this file with OUTPUT.
How can I do to get this retun code

 
This is the VB6 forum. Try forum314 Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
I'm fairly sure you can do this with VISUAL BASIC!
1) First step is to be able to read input from the
printer. There are already some input lines here,
but you can also jury-rig some normally-output
lines into input lines. See the text, BUILD YOUR
OWN LOW-COSTDATA AQUISTION AND DISPLAY DEVICES, by
Jeffrey Johnson.
2) The second step is to make VISUAL BASIC react to
events on your parallel 9printer) port. There is
a free .dll by a Dr. Arjan, in India. It works.
 
THOMASNG ,
The questionner asked about QuickBasic! Let me know if this helps
________________________________________________________________
If you want to get the best response to a question, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top