不用吧,你可以直接相互赋值的,不用转化啊,DELPHI会自动进行转换的

解决方案 »

  1.   

    不过有这样几个个函数
    StringToWideChar 将ANSI字符串转换为UNICODE字符串 
    WideCharLenToString 函数 将ANSI字符串转换为UNICODE字符串 
    WideCharLenToStrWar 函数 将UNICODE字符串转换为ANSI字符串变量 
    WideCharToString 函数 将UNICODE字符串转换为ANSI字符串 
    WideCharToStrVar 函数 将UNICODE字符串转换为ANSI字符串变量 
      

  2.   

    在能不能有一种方法将Unicode文件转化为Ansi文件?
      

  3.   

    在Delphi中能不能有一种方法将Unicode文件转化为Ansi文件?
      

  4.   

    如何用这个StringToWideChar?
    为何我这样用老是Crash.
    ...
    var
      str:string;
      str1:PWideChar;
    ..
    str := '中国人是chinese';
    str1 := StringToWideChar(str,str1,length(str));//crash here.
    showmessage(str1);
      

  5.   

    前两天刚写了个程序,有兴趣请与我联系![email protected]