Accessing USB Scale through Windx

Started by martinp, January 16, 2026, 06:49:04 PM

Previous topic - Next topic

martinp

Trying to use the HID.DLL through WindX and it just wont work (Linux Server)

Locally from pvx works great just cannot seem to work through windx even if I copy the code to the local PC and call "[lcl]scale.pvx",WEIGHT

I was able to create a Python program and Pvx just calls that to get the value.

I just cannot get a handler for it to return.  Is there way to get this to work?  Thank you.

LET HID_GUID$=DIM(16,$00$)
X=DLL("HID.DLL","HidD_GetHidGuid",HID_GUID$)
PRINT X



Mike King

One quick thought -- which WindX are you using?
 
Is it possible you are using the 32 bit WindX and trying to run a 64 bit DLL (or vice-versa)?
Mike King
President - BBSysco Consulting - http://www.bbsysco.com
eMail: mike.king@bbsysco.com

martinp

Thanks Mike you're on to something.

In haste I installed pvxplus 32 bit and that's probably why it appears to be able to access HID.DLL

That would mean this DLL is 32 bit and the Windx 64 bit cant access it.

I need to dig in a bit further, Thanks will report.