shaig
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?
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Sorry,
not realy an inteligent question, but i havne't got the time to explore this issue deeply.