|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
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.
|
|
#2
|
|||
|
|||
|
Which environment?
Dos or Windows? Ciao |
|
#3
|
|||
|
|||
|
hum... linux, but i guess it should be able to tranfer from linux to windows and windows to linux...
|
|
#4
|
||||
|
||||
|
Have you tried opening /dev/lp0 (for linux) or LPT1: for (windows) as a file and reading/writing to them?
|
|
#5
|
||||
|
||||
|
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. |
|
#6
|
|||
|
|||
|
thanks for your help... i'll try your suggestions...
|
|
#7
|
|||
|
|||
|
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. |
|
#8
|
||||
|
||||
|
I Google'd on '"parallel port" Linux' and got :
External Parallel Port devices and Linux http://www.torque.net/linux-pp.html parapin -- a Parallel Port Pin Programming Library for Linux http://www.circlemud.org/~jelson/software/parapin/ And over 50 more pages of hits. The first ones seem to be talking more about writing drivers for devices, which I guess is what you are wanting to do. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages > C Programming > parallel port programming??? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|