Home > database >  This function should be how to define in PB
This function should be how to define in PB

Time:09-27

DELPHI's functions are defined in the PB should be how to define?

Delphi prototype:

HSEncode=function (nMessageType: integer;
PbyEncodeMessage: PByte;
NEncodeMessageLength: integer;
NCorrectionLevel: integer;
NVersion: integer;
NModeSize: integer;
NRotate: integer;
NDpi: integer;
NImageType: integer;
SFileName: AnsiString) : integer; Stdcall;

CodePudding user response:

Try string PByte yao char?

CodePudding user response:

Tried, I can't.

CodePudding user response:

Does your zha statement posted a look

CodePudding user response:

Pbyte is ref int?

CodePudding user response:

Off []

CodePudding user response:

HSEncode=function (nMessageType: integer;
PbyEncodeMessage: PByte;
NEncodeMessageLength: integer;
NCorrectionLevel: integer;
NVersion: integer;
NModeSize: integer;
NRotate: integer;
NDpi: integer;
NImageType: integer;
SFileName: AnsiString) : integer; Stdcall;

The following is a corresponding relationship between
Delphi pb

The integer long
PByte Blob
AnsiString string

You try again,
  • Related