Programming I/O for usb devices
-
Hello all I want to code an application which can read and write using usb interface. As I'm very new to programming using usb interfaces, not able to understand how to do it. I want to use VC++ environment and want to develop a application which can read and write using usb interface just like we do with a serial port. Can anyone help me in this. Any sample code or links to articles abt the same are very much appreciated. Thanks for your help Hari.
-
Hello all I want to code an application which can read and write using usb interface. As I'm very new to programming using usb interfaces, not able to understand how to do it. I want to use VC++ environment and want to develop a application which can read and write using usb interface just like we do with a serial port. Can anyone help me in this. Any sample code or links to articles abt the same are very much appreciated. Thanks for your help Hari.
USB devices have a virtual serial port, their device driver is supposed to emulate a "normal" serial port. Therefor look at PlatformSDK/Device IO, and functions like SetupComm, ReadFile, WriteFile, or take a look at this library: http://www.codeproject.com/system/serial.asp[^] Peter Molnar