Was reworking the GenericHID code as a Console Application so I could call it from within another program and have it return a weight from a USB-connected scale. The code, for the most part, works (though, sometimes it steps oddly through the code and skips the actual data transfer - seems random to me, but am still looking into why it is doing that. Might require another topic on this forum
). My question is how the heck can you know the PID and VID beforehand? By that, I mean, every example of HID code I have seen requires the entry of a PID and VID to work. When the scale is connected, it appears as simply a HID-Compliant Device - no other clearly identifying information. So, if I have more than one HID Compliant device attached to my PC, how would code know which is the scale?
EDIT: I added the Module I created. I removed all references to the Form, and named this GenericHID.vb (overwrote the original one). I kept all other references the same.
[attachment deleted by admin]