PxPlus User Forum

Main Board => Discussions => Thin Client/WindX => Topic started by: martinp on January 16, 2026, 06:49:04 PM

Title: Accessing USB Scale through Windx
Post by: martinp on January 16, 2026, 06:49:04 PM
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


Title: Re: Accessing USB Scale through Windx
Post by: Mike King on January 19, 2026, 11:50:15 AM
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)?
Title: Re: Accessing USB Scale through Windx
Post by: martinp on January 20, 2026, 05:54:46 PM
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.