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 function Boolean setxfms (int port, long BTL, int jh, string zt) library 'project2. DLL' Alias for "setxfms"
PB?
PB10 and above should be:
The function Boolean setxfms (int port, long BTL, int jh, string zt) library 'project2. DLL' Alias for "setxfms; ANSI"
CodePudding user response:
6.5 or 7.0CodePudding user response:
Look like a statement no problemIt is better for the function prototype
CodePudding user response:
The prototype? I only have dynamic library documents, and demonstrate a program,