Z
zla
Unregistered / Unconfirmed
GUEST, unregistred user!
利用下面的方法行不通,我该如何改呢?
TMyRec=record
top:Integer;
end;
DLL中的内容:
function abcointer;stdcall;
var
MyRec:TMyRec;
begin
MyRec.top:=20;
Result:=@MyRec;
end;
界面程序:
var
Pointer;
TT:TMyRec;
begin
p:=abc;
move(p^,tt,sizeof(TMyRec));
ShowMessage(IntTOStr(tt.top));
TMyRec=record
top:Integer;
end;
DLL中的内容:
function abcointer;stdcall;
var
MyRec:TMyRec;
begin
MyRec.top:=20;
Result:=@MyRec;
end;
界面程序:
var
Pointer;
TT:TMyRec;
begin
p:=abc;
move(p^,tt,sizeof(TMyRec));
ShowMessage(IntTOStr(tt.top));