小编use*_*808的帖子

字节绝对字符串数组:编译64位Windows时的内容不正确

如果我为64位Windows编译,我的Byte-Arrays没有正确的输入值.如果我为x32-Windows编译此过程,则值是正确的.

谁能帮我?

procedure doAnything(AText: String); //for example "<xml><s name="hello"/></xml>"
var
  myArray:array of Byte absolute AText;
begin
  ... (* myArray for x32: correct Length and Values (60, 0, 120, 0, 109, 0, ...) *)
  ... (* myArray for x64: Length: 2 (60, 0) *)
end
Run Code Online (Sandbox Code Playgroud)

delphi 64-bit delphi-xe5

1
推荐指数
1
解决办法
652
查看次数

标签 统计

64-bit ×1

delphi ×1

delphi-xe5 ×1