zok
asked on
Parallel port communication (dll, ocx) ?
I need to comm' with the PC's parallel port. Anyone now of a way to do this ? The MS-Comm control is serial port only!
Preferably for 32 bit solution.
Preferably for 32 bit solution.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ARe the requirements to work under NT? Because if so, the DLL solution will not work.
You are right rmichels. The DLL solution will only work under Win95, and what you have suggested regarding WinRT is one of the feasible solution for Win NT.
CreateFileEx is supposed to work with parallel ports, serial ports, files, mailslots, named pipes, and almost anything else. I have used it to create a driver for a custom RS232 device. If you like, I can provide you with some code for that as an answer.
but can you actually control all of the lines in the port for create file?...more than just the data and handshaking lines? If the create file solution works, then reject my answer.
Honestly, rmichaels, I'm not sure. I never had the need to go past data transmission for my project, since the RS232 device only had 3 lines to begin with. But Microsoft claims that this is the "new and improved solution." You know how that goes. The always go and fix something that isn't broken.
I can understand using the CreateFileEx for sending/receiving data across the RS232 or Parallel port, but to me that is a limiting solution. It depends upons Zok's needs. Anytime I have used the parallel port, I had to tweak and diddle the control lines and data lines to control an external device.
Give me your e-mail address, and I will send it to you with a sample project. (Please unlock the question first).
Regards