如何在pascal上为指针分配常量地址?

时间:2016-01-14 09:01:20

标签: delphi debugging pointers pascal jedi-code-library

我无法找到如何在Delphi(Pascal)中为指针设置常量地址。我需要它用于jclDebug的地图文件中的搜索单元和亚麻布。 例如:

var
  P : pointer;
  info : TjclLocationInfo;
begin
  P := $016199E3;
  info := jclDebug.getLocationInfo(P);
end;

谢谢!

1 个答案:

答案 0 :(得分:1)

简单地投射到指针:P := Pointer($016199E3);