我想把$001A0000写到OFFSET138处,用下面的方法会写到文件的开始处,请大富翁们看看.
procedure TForm1.SpeedButton2Click(Sender: TObject);
var
h: hwnd;
buf: integer;
begin
if not opendialog1.Execute then exit;
buf:=$001A0000;
h:=fileopen(opendialog1.FileName,fmopenreadwrite);
fileseek(h,$00000138,4);
FileWrite(h,buf,sizeof(buf));
fileclose(h);
end;