I need to read from my LPT1 port when a connected device pulls one of the data pins high, and from all my googling and forum/maillist browsing im no closer to a solution. I have tried the inpout32.dll, tried using CreateFile() with a ReadFile(), but to no use.. there just doesn't seem to be any communication going on. As mentioned im running on Windows 7 x64 and need a solution for this OS.
Reading from LPT1 using MS VC++ 2008 on Windows 7(x64)
Collapse
X
-
I think you need to write a custom device driver to interface with the LPT port your device connects to.
Have you looked at: http://www.microsoft.com/whdc/driver...n/default.mspx -
Also, with Windows 7 you need administer privileges to get a device handle. This is a change from XP.
CreateFile should work if you have admin privileges.Comment
-
I have a hard deadline on my project, and i've had zero luck making it work so for now the windows version is put on ice (sadly) but it takes too much time trying to make it work. I will reply on this post if/when I have the time to get the windows version up and running. Thanks for the replies.Comment
Comment