Interfacing the LPT-port using C++ under WinNT
Posted on 2003-03-21
I have made a digital circuit which I want to test using the parallel port (instead of a microcontroller). I thought this was very simple, bus I discovered "_outp" does not work under WinNT. Then I found some alternatives:
- use a VxD (???)
- use a device driver (where do I get such a driver and how to use it?)
- use CreateFile("LPT1", .....) en WriteFile() (how?)
What is the best way to send some bits to the 8 datapins on the LPT-port in Visual C++ (Win32 Console App)?
I am just a beginner in C-programming, so keep it easy ;-)
Hope you can help me.