October 28th, 2000, 06:54 PM
Communicating with LPTI port
I want to communicate with other hardware thru the printer port. The hardware will consist among other things of some sram's that i want to send and recieve data from and to. So if anyone have and url's to where one could find facts on this subject (the software part) please let me know.
As I once said to my friend. I am not perfect, not even
near perfect but what would be the fun in that?
It would take away you possibilitys to call me a dumbass.
October 28th, 2000, 09:12 PM
Re: Communicating with LPTI port
You can use the Win32 API functions CreateFile, ReadFile, WriteFile, CloseHandle... on LPT with either blocking or non-blocking I/O.
Use the CreateFile function to open a handle to a communications resource. In your case to LPT1. It returns a handle to a parallel port.
Take a look to the serial communication examples, it is similar.
Click Here to Expand Forum to Full Width
This is a Codeguru.com survey!