Link to home
Start Free TrialLog in
Avatar of strmtrpr
strmtrpr

asked on

parallel port

Is there any routines in c or c++ I can use to send files
from my desktop to my laptop through the parallel ports.
Avatar of snoegler
snoegler

In standard C/C++, no. And even for windows 95/nt there aren't any functions for that, as
far as i know. I think you've to do it by yours
.. by yourself ... I think there are some commercial tools for that, but i don't remember right
now. (Sorry, just hit the mouse when it was over 'Submit' :-)
Avatar of strmtrpr

ASKER

thanks

It depends on what you mean.  The parallel ports are treated as files.  You can use C++ to open the associated file and read and write to the file in order to read and write to the port.  C++ doesn't give you any options for configuring the port however.  If you are working in windows, there are functions for doing so.
Whatever you create, it will not work under NT without a device driver.
Search on the net for a program called Flying Dutchman. It is an old dos program which does this for you. (I used to work on this application as a developer).
MirkWood, you can't open a parallel port with CreateFile() under NT?  The documentations doesn't indicate this is a problem.  (Actually, it seems to suggest this is the only way.)
Writing to the port isn't the problem. Reading is. The port was not decided for two-way traffic altough it is possible.
Thanks to everyone who has helped me

ASKER CERTIFIED SOLUTION
Avatar of Mirkwood
Mirkwood

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks again I have finding some useful info all over the place,