... Next Return cRet Static Function Hex2Serial(cHexSer) LOCAL cRet:="",i:=0 For i:=3 to 18 step 2 cRet:=cRet+chr(HexToDec(SUBSTR(cHexSer,i,2))) Next Return cRet Saludos
Jeff, Please add this code to the bottom of your PRG. This solves these three unresolved externals: STR2HEX(), HEX2STR() and HEXTODEC(). #pragma BEGINDUMP #include <hbapi.h> #include <windows.h> static far BYTE bChar[] = "0123456789ABCDEF"; HB_FUNC( ...
... protection. But nevertheless it is very confusing if two functions with the same functionality return different values (comparing nSerialHD() and HexToDec() with VolSerial() and HexToNum() from xHarbour)