我把源程序发出来,试一下,行不行
procedure TForm1.Button1Click(Sender: TObject);
var aa :integer;
begin
aa:=36766362;
label1.Caption:=inttostr(loword(aa))+'-'+
inttostr(hiword(aa));//这里得到的是: 666-561
end;
procedure TForm1.Button2Click(Sender: TObject);
var s:word;
begin
s:=561;
s:=s shl 16;
s:=s + 666;
label1.Caption:=inttostr(s);//返回的数和aa不一致
end;