February 18th, 2003, 12:00 AM
parallel port programming???
hi all... i have this assignment and i have to make a file transfer application in C, using parallel and/or serial ports. i have searched the web and i didn't find any easy-to-understand-newbie-focused resource, so if you have some links i would apreciate it.
February 26th, 2003, 04:00 AM
re:parallel port programming???
Dos or Windows?
February 26th, 2003, 01:03 PM
hum... linux, but i guess it should be able to tranfer from linux to windows and windows to linux...
February 26th, 2003, 01:20 PM
Have you tried opening /dev/lp0 (for linux) or LPT1: for (windows) as a file and reading/writing to them?
February 26th, 2003, 02:53 PM
I had downloaded a C program for this, pport.zip, some time ago, but I forget from where. So I did a Google on it and found a gaggle of sites -- and they are not all the same program.
I had hestitated replying at first because my copy had a lot of assembly in it. But the first hit I looked at did it in C.
So I suggest that you Google on "pport.zip" or just on "pport" and pick the most suitable of the hits.
February 26th, 2003, 03:17 PM
thanks for your help... i'll try your suggestions...
February 27th, 2003, 02:58 AM
Ok, for Linux I got nothing. But I found a really nice
Borland Builder/Delphi component: TComThread. Look
for it on the net. Probably the author did the same for
some linux compiler.
February 27th, 2003, 11:13 AM