This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

Do you have a VB.NET example of referencing your tiusbdll.dll?

I am trying to bind my legacy VB.NET application to your tiusbdll.dll. When trying to add the dll as a project reference, Visual Studio asks me to sure that it is a valid assembly or COM object, which suggests it's not.

When trying to reference it explicitly during run-time, I get a run-time error of course. The error is "BadImageFormatException", asking me to be sure the file image is a valid managed assembly.

I have been able to re-compile and run your usb_bulk_example (in C-sharp), but I have not been able to translate that to VB.net. Do you have a VB.net example you can provide?

Thanks,

Jim

  • Was the tiusbdll.dll built with Visual Studio 2012 (Platform Toolset v110)?

    I am using Visual Studio 2010 (v100), and one explanation for the BadImageFormatException is that your DLL was developed with a newer toolset or Framework that supports features that my calling application does not support. Any information you can provide about what Visual Studio and Framework was used to build tiusbdll.dll would be appreciated.

    Thanks,

    Jim