天 天真 Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-11 #2 var a : ^pchar; s:string; begin} longint(a) :=longInt(PChar('fasdfas'));//把指针地址给A showmessage(pchar(a^)); 为什么这样出错????/
var a : ^pchar; s:string; begin} longint(a) :=longInt(PChar('fasdfas'));//把指针地址给A showmessage(pchar(a^)); 为什么这样出错????/
U ugvanxk Unregistered / Unconfirmed GUEST, unregistred user! 2002-07-11 #3 achar; //pchar:本来就是指针类型 getmem(a,20); strpcopy(a,'fasdfas'); showmessge(string(a)); freemem(a) ////////// 可以用Move a:=pchar(s); s:=string(a)
achar; //pchar:本来就是指针类型 getmem(a,20); strpcopy(a,'fasdfas'); showmessge(string(a)); freemem(a) ////////// 可以用Move a:=pchar(s); s:=string(a)