Link to home
Start Free TrialLog in
Avatar of shaig
shaigFlag for Afghanistan

asked on

Writing to the parallel port on Win32

I want to to hold a value on the parallel port. In DOS, i just had to "outport" to the lpt address, while in Win32 ( Nt workstation )it is a bit more complecated i guess.
So far i was abble to open the file \.\\lpt for reading and writing ( CreateFile ), but wheneven i try to write, WriteFile failes ( although GetLastError claims that the operation completed successfuly ) and nothing apears on the parralel port.  
Does anybody know how to configure the parallel port ( maybe its a control flow issue? ) - is it done in the same bizzar way like the serial port?  How can i realy complete this simple and rather stupid operation successfuly?
ASKER CERTIFIED SOLUTION
Avatar of jhance
jhance

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of shaig

ASKER

Is there a hardware  workaround, like connecting one of the parallel port pins to another ( similar to 3 pin serial connections - elimination of control flow ).
Sorry,
not realy an inteligent question, but i havne't got the time to explore this issue deeply.