有结构体如下: TInGoods=Record
ID:Integer;
//Remark: String;
Remark:array[0..255]of char
// 改这里
end;
Var
p,k
ointer;
InGoods:TInGoods;
Begin
ZeroMemory(@InGoods,SizeOf(TInGoods));
InGoods.ID := 1233;
//InGoods.Remark :='test yixia';
lstrcpy(@InGoods.Remark[0],'test yixia')
// 改这里
p := GetMemory(SizeOf(TInGoods));
move(InGoods,P^,sizeof(InGoods));
k := GetMemory(SizeOf(TInGoods));
move(p^,k^,sizeof(InGoods));
//showmessage(TInGoods(p^).Remark);
MessageBox(GetActiveWindow,@TInGoods(P^).Remark[0],nil,0)
// 这个地方不改也行
End;