Writing raw data to a USB printer

  • Thread starter Thread starter AM
  • Start date Start date
A

AM

What I am trying to do is write raw data to a USB to parallel adapter
to control an external device (as I dont have a parallel port) using
VC++.net or C#
The adapter is not a true parallel port and is hence treated as a USB
device. How would I be able to write raw data or ASCII data to this
adapter? Can I use the WritePort
(http://msdn.microsoft.com/library/d..._b4300d7a-1424-40e0-931f-08c727eb4174.xml.asp)
function and if so how ? an example would help a lot.

Thanks,
AM
 
What I am trying to do is write raw data to a USB to parallel adapter
to control an external device (as I dont have a parallel port) using
VC++.net or C#
The adapter is not a true parallel port and is hence treated as a USB
device. How would I be able to write raw data or ASCII data to this
adapter? Can I use the WritePort
(http://msdn.microsoft.com/library/d..._b4300d7a-1424-40e0-931f-08c727eb4174.xml.asp)
function and if so how ? an example would help a lot.

Hi,

Those adapters are not meant to be parallel port compatible. You can do all
sorts of things with a true parallel port, but those USB devices are only
meant to support the printer protocol. You cannot use them to toggle lines to
control external devices.

As for writing raw data to a USB device, read my blog post on this:
http://msmvps.com/blogs/vandooren/a...vice-drivers-with-Visual-C_2B002B003F00_.aspx
 
Back
Top