使用 TULargeInteger 进行转换,新编译器 10.2 缺少属性 LowPart 和 HighPart。
uses Winapi.Windows;
function RetLargeInt: Int64;
var
ALow: DWORD;
begin
{Do Something
With ALow
}
TULargeInteger(Result).LowPart := ALow; {Missing 'LowPart'}
end;
procedure AProc;
var
ALocalInt: Int64;
begin
ALocalInt := RetLargeInt;
{Do Something}
end;