For example I have a scanner (for photos, documents etc). I've installed its driver (win7). How can I read usb input from this scanner using VC++ (I use vs2012). I've seen many related to usb articles but no one helped me. I've never developed usb software so need help in getting started. I've installed winddk as well. Can anybody show a sample of code (it's not necessary should be a scanner, but USB-mouse/keyboard as well)

Thanks a lot!

有帮助吗?

解决方案

To read from usb port you must use some library for it, such as libusb. Also, try libusb-win32.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top