Vaclav wrote:
>
> I would like to have a private contact with someone who could give me
> some pointers about BASIC libusb build and usage in Windows MFC.
MFC is not relevant. That's just a framework for building GUI
applications. Did you mean Visual C++?
> I have been told by "expert" to use libusb0.1 but the software I am
> using clearly loads libusb0.dll
Yes, libusb0.dll is the interface for libusb-win32, which is a Windows
version of libusb 0.1. There is a separate mailing list for
libusb-win32, if that's what you currently have.
> Basically whatever I am using is refusing to detect more than one USB
> "bus" - whatever that is, and none USB devices. I can detect the
> device in question using other applications, but I am stuck ( at least
> for now) to get libusb going so I can control the device.
Yes, libusb in Windows can only access devices that are using the libusb
driver, libusb0.sys. There has to be a driver package with an INF file
that matches your USB device identifier to the libusb0.sys driver. If
you haven't assigned a driver to your device, then it will not be
found. If this is a package you inherited, then there may already be a
driver package somewhere.
> I would prefer to build the whatever dll from source so I can debug my
> app ( I have not figured out how to debug “build” dll) and learn how
> it works. I think I am missing the relations between MFC .lib ( which
> I can build" and the required libusb0.dll.
There is no relationship between MFC and libusb, except that your
application happens to use both. Libusb0.dll is just like any other DLL
(like gdi32.dll or user32.dll or the C run-time library). You shouldn't
really need to be debugging inside of it. You just use the services it
provides.
What kind of device is this? How much data will be you be transferring?
> I am basically lost which libusb to use ( libusb0.1, 0, libusbx,
> libusb_win32 ) but I need some basic know-how to be able to build and
> use library from source.
If you already have code that uses libusb_win32, then it's probably not
worth the trouble to start over. If you are starting from scratch, then
it might be worth considering an upgrade.
--
Tim Roberts, t...@probo.com
Providenza & Boekelheide, Inc.
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
libusbx-devel mailing list
libusbx-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/libusbx-devel