Reply
Highlighted
Posts: 12
Registered: ‎02-02-2007
Accepted Solution

USBXpress DLL version [C#]

Hi,

I've got a C# DLL we use to interface to various USBXpress devices (it abstracts a common interface for USBXpress and Serial Ports), and we're upgrading our drivers to v4.0.0.

However, we need this work with whichever drivers are loaded on the customers machines (either the v3.x.x or the v4.x.x).

This will be a 32-bit process it is loading into, but I'm presuming it means keeping two copies of siusbxp.dll and LoadLibrary-ing the correct one.

How do other people cope with this, and how do you detect which one to load?

Mike
Posts: 4
Registered: ‎08-29-2013

Re: USBXpress DLL version [C#]

Hi MikeGH,

I'm coping with a similar issue at the moment, as you may read here .

I found this example at stackoverflow very helpful, even if it didn't work for me, since I need to use the SI_GetNumDevices-method (and therefor load the DLL at program start) even if no device is attached.
But maybe it will help in your case :-)

Regards
kd_mok
Posts: 7
Registered: ‎10-01-2015

Re: USBXpress DLL version [C#]

Could you give me a file. Now I am struggling with it. I am trying to connect to C8051F340 by USB.