A
antdown
Unregistered / Unconfirmed
GUEST, unregistred user!
type
; TMyStruct = record
; dwSizeWORD;
end;
...
function MyTest():byte;
begin
...
end;
....
procedure DoIt;
var
; MyVar1word
; MyVar2word
; MyVar3:TMyStruct
begin
; MyVar1:=@MyTest; ;//明显不对,怎么做,对应于C里面的addressof
; MyVar2:=@MyVar3; ;//也不对,怎么做,对应于C里面的addressof
end;
; TMyStruct = record
; dwSizeWORD;
end;
...
function MyTest():byte;
begin
...
end;
....
procedure DoIt;
var
; MyVar1word
; MyVar2word
; MyVar3:TMyStruct
begin
; MyVar1:=@MyTest; ;//明显不对,怎么做,对应于C里面的addressof
; MyVar2:=@MyVar3; ;//也不对,怎么做,对应于C里面的addressof
end;