F
fartripLiao
Unregistered / Unconfirmed
GUEST, unregistred user!
to张无忌
var
ret:BOOL;
rcLogic,rcDest:TRect;
PHeader,CardPosCAP_WND_P0S;
这样调用
CardPos:=AllocMem(SizeOf(CAP_WND_POS)*3);
PHeader:=CardPos;
try
for i:=1 to 3 do
begin
CardPos^.// 设置他的值
Inc(CardPos,SizeOf(CAP_WND_POS));
end;
ret = MapLogicScreenToUserScreen(rcLogic,rcDest,PHeader,4);
finally
freemem(CardPos);
end;
freemem(CardPos); //当执行到这一句会出错
var
ret:BOOL;
rcLogic,rcDest:TRect;
PHeader,CardPosCAP_WND_P0S;
这样调用
CardPos:=AllocMem(SizeOf(CAP_WND_POS)*3);
PHeader:=CardPos;
try
for i:=1 to 3 do
begin
CardPos^.// 设置他的值
Inc(CardPos,SizeOf(CAP_WND_POS));
end;
ret = MapLogicScreenToUserScreen(rcLogic,rcDest,PHeader,4);
finally
freemem(CardPos);
end;
freemem(CardPos); //当执行到这一句会出错