Home > database > Pb how to call the function parameter hexadecimal
Pb how to call the function parameter hexadecimal
Time:09-25
External function prototype is Int DF_AuthPro (int hReader, stDFAuth pDFAuth); The pDFAuth structure definition: Typedef struct { BYTE DFAID [3]. BYTE KeyNo; BYTE PsamKeyType; BYTE PsamKeyIndex; BYTE PsamAPP; }
In c # routines that call StDFAuth stDFAuth=new stDFAuth (); StDFAuth. DFAID=new byte [] {0 x01, 0 x00 to 0 x00}; StDFAuth. KeyNo=0 x01; StDFAuth. PsamAPP=0 x11; StDFAuth. PsamKeyIndex=0 x01; StDFAuth. PsamKeyType=0 x01;
ReadCard. DF_AuthPro (hReader stDFAuth);
How to call in pb?
CodePudding user response:
Disclaimer: The function of integer DF_AuthPro (integer hReader, stDFAuth pDFAuth) library "XXX. DLL " Call like c #.
CodePudding user response:
The building Lord, please understand, value is a decimal or hexadecimal meaningless for computer, the computer is only 2 right to base a bit, so called decimal and hexadecimal is in order to comply with our human nature habit to appear in the computer, so the following two assignment means is equivalent to the computer, no difference: Int a=0 x11; Int a=17; So call a function, the parameters in the values you use hexadecimal value assignment and decimal value assignment is no different from, as long as the two Numbers is equal,