Hi! Xiaofan, The open() function works after changing to release 1.0.12. What a stupid mistake I had made!! Thanks for help.
Best Regards, Jach 2012/6/18 PM 06:14, Xiaofan Chen said: > On Mon, Jun 18, 2012 at 6:08 PM, Jach Fong <jf...@ms4.hinet.net> wrote: >> I test it today on using the Borland C++ 5.0 (My previous tests >> were done on another language). > > Wow, that is very old toolchain. Any reason you want to use it? > >> At first, the BC++ linker complains about the libusb-1.0.lib >> with "contain invalid OMF record type 0x21(possibly COFF)" message. > > The lib is for MSVC. > >> I use implib.exe to generate a new one from the file libusb-1.0.dll >> and the linker accepts it. Then, I build a console application using >> the example file "listdevs.c" to test. It runs successfully, proves >> that the new .lib is correct. > > Yes that is the way to go for Borland C++. > >> After that, I build another project to test my problem. It's still >> there. (The source file was attached). As you suggest, I add the >> "set_debug" command but nothing appears, in the console window which >> appears during the time when stepping a console program, or in other >> IDE's windows. >> >> No "debug log" is available:-( > > libusb_set_debug(NULL, 3); // set for debug > You can change it to 4 to get more verbose debug message. > > But I think the problem is that you need to use libusbx-1.0.12 release > and not 1.0.11 release. HID support is only available in 1.0.12 release. > ------------------------------------------------------------------------------ Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ _______________________________________________ libusbx-devel mailing list libusbx-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/libusbx-devel