procedure TMyForm.Button3Click(Sender: TObject);
var
  a : ^DWORD;
  b : DWORD;
begin
  a := Pointer(RoleBaseAdr);
  a := Pointer(a^+$68);
  b := a^;
如果我把这段话定意到函数单元比如
Function GetRoleExp: DWORD; 
var
  RoleBase: DWORD;
begin
  Try
    RoleBase := RDword(RoleBaseAdr);
    Result := RDword(RoleBase + $58);  
    except
    Result := 0;
  end;
end;我直接取 GetRoleExp 就可以读取到 应该怎么做我这里怎么写都读出来的函数为0