I have a problem to use my LIBUSB.mod in BlitzMax1.26.
This is the BlitzMax Module.
This is my sample BlitzMax program:
Can someone tell me that is wrong under BlitzMax 1.26 it works fine.
This is the BlitzMax Module.
SuperStrict Module sch.libusb ModuleInfo "Version: 1.00" ModuleInfo "Modserver: Not yet implemented" ModuleInfo "Author: Sven Schwiecker (MacOS part)" ModuleInfo "License: Public Domain" ModuleInfo "Contact: Sven.Schwiecker@..." ModuleInfo "Homepage: www.SvenSchwiecker.de" ?MacOS 'Import "include/*.h" Import "usbmax.c" Import "darwin.c" Import "usb.c" Import "descriptors.c" Import "error.c" 'Import "usbpp.cpp" Extern "C" Function usb_init() Function usb_set_debug:Int(level:Int) Function usb_find_busses:Int() Function usb_find_devices:Int() Function get_usb_busses:Int() Function get_usb_device:Int() Function print_device:Int() Function print_configuration:Int() Function showmain:Int() EndExtern
This is my sample BlitzMax program:
'usbtest x=usb_find_busses() Print "USB Busses found: "+x x=usb_find_devices() Print "USB Devices found: "+x
Can someone tell me that is wrong under BlitzMax 1.26 it works fine.