|
-
Jun 8th, 2002, 09:30 AM
#1
Thread Starter
Member
Parallel Port - Windows 2000
Hi,
I have created a software that controls a door access system through my parallel port. I have managed that writing to the parallel port using a IO.DLL file. The software works fine in Windows 98 however when I tried to use it in Windows 2000 it crashes. The parallel port doesn't work in Windows 2000. Any ideas why is that? Any possible solutions that I can overcome this problem?
Please advice!
Thanks,
H.
-
Jun 8th, 2002, 09:55 AM
#2
Windows 2000 is a lot stricter when it comes to low level device access. However, I believe that you can use the Win32 API to do Parallel Port access. Try looking at the CreateFile() call, and related functions (I think, dont quote me).
Z.
-
Jun 8th, 2002, 10:04 AM
#3
Good Ol' Platypus
Yeah, open "LPT1:" for Binary access. It should do the trick. Simply PUT a byte to it.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jun 8th, 2002, 10:15 AM
#4
Thread Starter
Member
Can you please send me some code examples of sending a BYTE to the paraller port (..for Windows 2000)?
Thanks a lot!
H.
-
Jun 8th, 2002, 10:33 AM
#5
Good Ol' Platypus
There's a really easy way that I can't believe slipped my mind - the msComm control. Gives you access to the serial, ps/2, and parallel ports. You should do a Google on how to find it.
All contents of the above post that aren't somebody elses are mine, not the property of some media corporation. 
(Just a heads-up)
-
Jun 8th, 2002, 04:46 PM
#6
Hyperactive Member
Hi there!
I've helped a friend of mine out with his final test. He had to interface from VB to the parallel port too.
The problem with the NTFS system could be the following:
1) Win2000,XP,NT work with the NTFS filesystem. This makes a big difference for programmers. They have to communicate through the HAL layer. It's just different than in Win98 let's just say it that way. You'll have to find a new dll file wich is appropriate for your OS
2) XP, Win2000 just crash when you try to open a connection with the parallel port without something connected to the system's port.
I hope I was helpfull,
Pieter
Kind Regards,
Pieter
PS: If you found someone's answer helpful, please be so kind to rate that person.
Thanks.
-
Jun 8th, 2002, 04:54 PM
#7
Hyperactive Member
That's a link to do it in win2k
Kind Regards,
Pieter
PS: If you found someone's answer helpful, please be so kind to rate that person.
Thanks.
-
Jun 8th, 2002, 05:07 PM
#8
Hyperactive Member
Hi
http://www.geekhideout.com/iodll.shtml
This is techman's great post a bit lower in the forum! Great job!
Kind Regards,
Pieter
PS: If you found someone's answer helpful, please be so kind to rate that person.
Thanks.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|