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

activate/controlling the parallel port in winXP

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
Hey,
Im trying to activate the parallel port under XP using some C++ mumbo-jumbo. I wanna send some 1/0 data to the port.
I.E. :
#include <iostream.h>
#include &quot;access.h&quot;
#include <conio.h>

void main()
{
ActivateParallelPort();
SetPin(1,true);
SetPin(14,true);
getch();
deActivateParallelPort();
}

Any Ideas?? I want to send an on/off signal to turn on some LED's occording to the pin #. Thnx
 
I found that this code works with NT but not with XP.
Anyone tell me why that is???
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top