Check out this page, there are great freeware DLLs and documentation. There are ones similar to INP and OUT in QBasic.

http://www.lvr.com/parport.html

or one of the DLLs:

http://www.lvr.com/files/inpout32.zip


Sunny