| 1 | Low-level programming (i.e. controlling parallel and |
| 2 | serial ports) can be tricky in Windows (expecially |
| 3 | for someone used to doing it under Linux). |
| 4 | Fortunately the |
| 5 | [http://www.cygwin.com/ cygwin] |
| 6 | this easy to do in a unix-similar way. |
| 7 | |
| 8 | === Serial Port Programming === |
| 9 | |
| 10 | Cygwin is |
| 11 | [http://en.wikipedia.org/wiki/POSIX POSIX] |
| 12 | -compatible enough that programs which |
| 13 | access the serial port in a POSIX way |
| 14 | will work without modification. |
| 15 | |
| 16 | Here is an example: |
| 17 | [http://joule.bu.edu/~hazen/edf_tech/sio_example.zip sio_example.zip] |
| 18 | library developed for a specific project, but it should give you |
| 19 | an idea of what is needed for basic port operations. |
| 20 | |
| 21 | === Parallel Port Programming === |
| 22 | |
| 23 | ''''Cygwin and PortTalk DLL''' |
| 24 | |
| 25 | Use Cygwin and the |
| 26 | [http://www.beyondlogic.org/porttalk/porttalk.htm |
| 27 | porttalk driver] |
| 28 | from |
| 29 | [http://www.beyondlogic.org/ beyondlogic.org] |
| 30 | |
| 31 | I have tested version 2.2 of the porttalk driver on my Thinkpad T43 running WinXP |
| 32 | and it works. |
| 33 | |
| 34 | ''''inpout32.dll from Logix4u''' |
| 35 | |
| 36 | Another option is the inpout32.dll library from [http://logix4u.net/ logix4u.net] |
| 37 | This comes with a VB example which works out of the box with Visual Basic Express 2005 |
| 38 | (free). ''''NOTE:''' the project must be located on a local hard drive, not a network |
| 39 | share, or you will get a security exception from the .NET framework. |
| 40 | |