I'm just trying to gain access to my parallel port, and have found out, that it is possible to do this with the _outp() function (Visual C++). But in order to use this function I need the adress of the port. Is there any function or standard value I could use?
In Windows device manager you can check to see which base port number is associated with the parallel port.
Example for Windows 98:
-Go to control panel
-Double click on System
-Select the Device Manager Tab
-Browse down to Ports (COM & LPT)
-You should see a list of LPT and COM ports here
-Select the LPT port you want to use (Double click)
-Select the Resources Tab
-Here you will see the Input/Output Range
Example: 0378-037A /*So your base port number is 0x378*/
-Data register is 0x378
-Status register is 0x379
-Control register is 0x37A
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.