First of all read this arcticle about the Parallel Port
http://zone.ni.com/devzone/conceptd.nsf/webmain/72C6FC6CE4AD4D1386256B1800794596
After that downaload the Accesshw.zip which allows you to write and read from any computer's port under windows.
Now if you want lets's say to write to the 1st bit of the parallel port you have to put to the parallel's port data address the value 1. In order to leave the other bits unaffected you have to keep somewhere the state of the parallel port and use the following condition [state OR 2***bit_number] if you want to turn on (1) this number. On the other hand if you want to turn it of use [state AND NOT(2***bit_number)]
Please let me know if you need more information
----------------------------------------------------------------------------------------------
There are 10 kind of persons. Those who understand binaries and the others.