1.String转化成PChar

例:

var

  str: string;

  pStr:PChar;

...

pStr := PChar(str);

 

2.PChar转String

例:

var

  pStr:PChar;

  str:string;

...

str := strPas(pStr);

posted on 2010-09-28 11:21  sunjun0427  阅读(6511)  评论(0编辑  收藏  举报