TheCPUWizard
January 7th, 2003, 10:51 PM
note: This post was originally made as a follow up on a long thread on LPT access, tihs the topic is really different, I am posting again as a new thread
I currently have a need to emulate a printer. Using a parallel cable (ala LapLink) I need to connect to the parallel port of another computer (which can not be touched in ANY way other than connecting the cable) and capture the printer output.
About two years ago I ran across a C / C++ library that was specifically for emulating printers. It used two LPT ports on the computer. One to capture the data (and privide responses jus like and HP Laser Jet) and then re-route the data out the other port via the currently selected driver.
If any one can remember this library name, or knows of any good starting points for this project, I would greatly appreciate it.
Of course the minimal starting point is opening the LPT for INPUT. This does not seem to work quite the same as serial ports.
I have a number of working programs that use CreateFile to open a COM port and perform bi-directional data transfer. Whe I switch from a COM port to an LPT port, output seems ok, but input is not....
I currently have a need to emulate a printer. Using a parallel cable (ala LapLink) I need to connect to the parallel port of another computer (which can not be touched in ANY way other than connecting the cable) and capture the printer output.
About two years ago I ran across a C / C++ library that was specifically for emulating printers. It used two LPT ports on the computer. One to capture the data (and privide responses jus like and HP Laser Jet) and then re-route the data out the other port via the currently selected driver.
If any one can remember this library name, or knows of any good starting points for this project, I would greatly appreciate it.
Of course the minimal starting point is opening the LPT for INPUT. This does not seem to work quite the same as serial ports.
I have a number of working programs that use CreateFile to open a COM port and perform bi-directional data transfer. Whe I switch from a COM port to an LPT port, output seems ok, but input is not....