码迷,mamicode.com
首页 > Windows程序 > 详细

DELPHI 中pwidechar 与String

时间:2015-04-11 17:41:07      阅读:172      评论:0      收藏:0      [点我收藏+]

标签:

 1 var
 2 
 3  s,s1: string;    
 4 
 5 pw: PWideChar;    
 6 
 7 begin      
 8 
 9   s:=hello worldxxxx;     
10 
11   GetMem(pw,2*length(s)+2);    
12 
13   pw:=StringToWideChar(s,pw,length(s)+2);    
14 
15   s1:=WideCharToString(pw);    
16 
17   edit1.Text:=s1;
18 
19     freemem(pw);    
20 
21 end;

 

DELPHI 中pwidechar 与String

标签:

原文地址:http://www.cnblogs.com/moonwind/p/4417987.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!