Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to connect serial, parallel, usb ports with c++ ?

Are there any class or code sources?
Posted
Updated 7-Aug-10 1:31am
v2
Comments
Dalek Dave 7-Aug-10 7:31am    
Minor Edit for Readability.

Several examples can be easily found:

Parallel port:
http://electrosofts.com/parallel/parallelwin.html[^]

http://logix4u.net/Legacy_Ports/Parallel_Port/A_tutorial_on_Parallel_port_Interfacing.html[^]

Serial port:
http://www.codeproject.com/system/ppsc.asp[^]

http://www.codeproject.com/system/cserialcom.asp[^]

http://www.control.com/1026197274/index_html[^]

USB: (WinUSB)
http://msdn.microsoft.com/en-us/library/ff540196.aspx[^]

Commercial toolkit:
http://www.entechtaiwan.com/dev/rapid/[^]


The serial and parallel port are the most easy to use because they are so extremely old that the pins of those ports are almost soldered directly to the cpu. An USB however needs some more work although the operating system developers did the most work having to build the USB stack. Still the most easy way on windows is to use winUSB, that will make it much easier because you don't have to build a kernel driver with all the necessary driver signing and what not these days.

Good luck!
 
Share this answer
 
thanks my friend , do you know about virtual serial ports ?how can i create and use in c++ or are there any source i looked to google ..:)i did not find helpful things
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900