| 
      
      
      From: Stephan M. <ste...@we...> - 2006-05-19 16:34:04
      
     | 
| 
> Hi,
> 
>  I've recently started with libusb-win32 and I've found some behaviour I didn't understand. I'm using Visual Studio with libusb.lib included.
> 
>  I tryed this:
> 
>                 udev = usb_open(dev);
You forgot to configure the device:
usb_set_configuration(udev, 1);
 
> 		if (udev) {
> 			if (usb_claim_interface(udev, 0)<0){ perror("Error"); }
> ....
> 
>  And the usb_claim_interface return -22 what perror couldn't interpret. It wrote me "Error: No error". What am I doing wrong?
> 
Use usb_strerror() to retrieve a printable error message.
> Thanks for all your ideas.
> Yours Martin Hasaj
> 
> 
> -------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services, security?
> Get stuff done quickly with pre-integrated technology to make your job easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Libusb-win32-devel mailing list
> Lib...@li...
> https://lists.sourceforge.net/lists/listinfo/libusb-win32-devel
_______________________________________________________________
SMS schreiben mit WEB.DE FreeMail - einfach, schnell und
kostenguenstig. Jetzt gleich testen! http://f.web.de/?mc=021192
 |