With libusb-win32 I tried to make a small program to list the usb devices.
I discovered that the constant PATH_MAX had changed from 4096 in pas-libusb to 512 in libusb-win32-bin-1.2.6.0\include\lusb0_usb.h line 21 . This was causing an exception.

Now the program works but just output "Bus: bus-0" with no devices.
libusb-win32 comes with two test programs testlibusb-win.exe and testlibusb.exe but don't find any devices too. I think that for some reason libusb-win32 doesn't work with recent Windows (I'm testing on Windows 10).

If you want to test, I've put temporarily a zip of my test directory at http://mars42.com/test_libusb-win32.zip .

I've seen https://sourceforge.net/p/libusb-win32/wiki/Home/ that they advice to migrate to the libusb-1.0 form http://libusb.info.


_______________________________________________
fpc-pascal maillist  -  fpc-pascal@lists.freepascal.org
https://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Reply via email to