First of all, I have searched the internet all day long, including here on stackexchange, and couldn't find a clear solution. Only ambiguous answers and dead links.
- Let's start with what I have: my PC has a motherboard from 2007, with an onboard parallel port. I bought a parallel port connector and soldered a wire to pin 2 and 25 ( first data pin and ground). I've put an appropriate resistor and an LED.
- I started with the idea of using Processing first. After a bit of searching I found the PortIO library. I installed it and tried the blinking example. No success. The program seems to work( I inserted a print("Blink!"); after every delay and it displays the message), but the LED doesn't light up. I have to mention that, when I restart the computer, the LED briefly lights up. So the port is working, but I can't control it.
- Then I moved to the idea of using C++. As I searched I found out that newer versions of Windows severely limit program access to hardware. Well, I found out about inpout32.dll, and downloaded it from this page(Binaries only - x86 & x64 DLLs and libs).
- It seems the driver successfully installed, but I can't find out how to use the files. I use Visual Studio 2012, but I'm not really accustomed to working with external libraries and dlls. Where do I have to put the inpout32.dll, inpout32.h and inpout32.lib files and how do I link them?
And the biggest question is this: How do I actually use inpout32.dll? I can't find any example! It's either for Basic or C#, or even more frustrating, dead links! For starters, I'd Like to simply turn on and off the LED. Then I can figure out more complicated projects.