E2034 Too many actual parameters,该怎么处理
来源:学生作业帮助网 编辑:六六作业网 时间:2024/12/25 13:06:40
E2034 Too many actual parameters,该怎么处理
E2034 Too many actual parameters,该怎么处理
E2034 Too many actual parameters,该怎么处理
function IEncodeString(inText: string): string;vartmp, inBuffer: array [0 .. CNormalBufLen - 1] of Char;
{$IFDEF VER230}
inSize: LongWord;{$ELSE}inSize: Integer;{$ENDIF}vCompress: Pointer;beginResult := '';
if inText = '' thenexit;inSize := Length(inText);
Move(PChar(inText)^, inBuffer, inSize);tryCompressBuf(@inBuffer[0], inSize, vCompress, inSize);
PByte(vCompress)^ := inSize;
Move(vCompress^, inBuffer, inSize);
OutputDebugString(PChar(format('0x%s', [IntToHex(PInteger(vCompress)^, 8)])));
inBuffer[inSize] := #0;
FreeMem(vCompress);exceptraise;end;Encode6BitBuf(@inBuffer[0], @tmp[0], inSize, CNormalBufLen);
Result := StrPas(tmp);end;function IDeCodeString(inText: string): string;vartmp: array [0 .. CNormalBufLen - 1] of Char;
inSize: Integer;
vCompress: Pointer;begininSize := Decode6BitBuf(PChar(inText), @tmp[0], Length(inText), CNormalBufLen);trytmp[0] := Char($78);
DecompressBuf(@tmp[0], inSize, 0, vCompress, inSize);
Move(vCompress^, tmp[0], inSize);
tmp[inSize] := #0;
FreeMem(vCompress);exceptraise;end;Result := StrPas(tmp);end;调用代码如下:
IDeCodeString(Trim(g_ListName), edcZip);
编辑运行后提示:[Pascal Error] Thad.pas(343): E2034 Too many actual parameters