Receiving data from a USB device in C or C++

后端 未结 5 582
夕颜
夕颜 2021-02-01 09:05

I need a list of all plugged in USB devices and have the user select one to let the console application receive any data the USB device sends.

I can then start playing a

5条回答
  •  我在风中等你
    2021-02-01 09:37

    How can one write a program for USB, wanting to understand the background of it, while not wanting to read much about it, not wanting to use a library, all in the same time? Anyway. there is a project "libUSB Win32" from Stefan Meyer not under heavy development at the moment, but written in C maybe this could be something for you, it has also the ability to run under ancient windows versions ;) you can find it here:
    http://sourceforge.net/apps/trac/libusb-win32/wiki
    a while ago i have written this in VB6 that makes use of "libUSB Win32" don't know if it can be useful for you:
    http://www.activevb.de/cgi-bin/upload/download.pl?id=3061

提交回复
热议问题