The function setxfms (port: integer; BTL: integer; Jh: integer; Zt: string) : Boolean; Stdcall; External 'project. DLL' name 'setxfms';
Among them:
Parameters: port: serial number
Btl: baud rate
Jh: number (
Zt: working mode (00 - fixed consumption, 01 - manual consumption, 02 - menu consumption)
I in PB's statement is:
The function Boolean setxfms (int port, long BTL, int jh, string zt) library 'project2. DLL';//to work mode
But when measured in the program calls impassability, measured in DELPHI,
Later changed in PB setxfms (3960 0, 2, '02) is also impassability,
If statement, please make a mistake, should be how to declare,
Thank you very much!!!!!!!!!!
CodePudding user response:
The statement did not wrong, you run results under debugging, estimated usage is wrong!!!!!CodePudding user response:
The long integer equivalent of pb in the DelphiIf this under pb10 version should be feasible to
The function Boolean setxfms (long port, long BTL, int jh, string zt) library 'project2. DLL'
Pb10 and above version
The function Boolean setxfms (long port, long BTL, int jh, string zt) library 'project2. DLL' alias for "setxfms; Ansi"
CodePudding user response:
The second floor is right!!!!!!