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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Parallel port

Status
Not open for further replies.

VCPLUS

IS-IT--Management
Nov 21, 2002
3
US
I am a newbie to device driver programming. Could anyone
tell me how to write a parallel port device programming in VC++(Microsoft)I need to get the productIds of the printers that will be connected to the Parallel port. I would appreciate if you could provide me with sample code and/or links.

Thanks alot.
John.
 
Well John. You're need to use CreateFile(); or make
some assembler in you programm. the form is
_asm mov ax,bx something like this
then you just write or read from port like this:
in bx is an address of a port.
_asm in ax,bx
or
_asm out ax,bx
Nostromo.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top