On Wed, December 22, 2010 05:50, Tormod Volden wrote: > On Tue, Dec 21, 2010 at 1:36 PM, Andrew Errington wrote: > >> code and a compiled binary. Unfortunately the binary was compiled for >> a different Product ID than the device I have. Doubleplus unfortunately >> the source code for the .lib file which actually sends the data packets >> to the device is already compiled. I have the header file, but not the >> source. > > If only the Product ID is wrong (but the code would otherwise work > with your device) I would have tried binary patching to change the ID. If > you know the ID it is built for and can do some disassembly, you might > have a chance to find the right bytes to patch.
Yes, it's a good idea, thank you. I did think about this already, but I can not be sure that the Product ID in the compiled code is the same as the sample source code. Probably it is, but even so, it is a 16-bit value, and I don't know if it will be encoded as two bytes together. If I cannot find a compiler then I will try to hack the binary. Best wishes, Andrew ------------------------------------------------------------------------------ Forrester recently released a report on the Return on Investment (ROI) of Google Apps. They found a 300% ROI, 38%-56% cost savings, and break-even within 7 months. Over 3 million businesses have gone Google with Google Apps: an online email calendar, and document program that's accessible from your browser. Read the Forrester report: http://p.sf.net/sfu/googleapps-sfnew _______________________________________________ pyusb-users mailing list pyusb-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/pyusb-users