必胜高考网 > 计算机类 > 计算机等级 > 资讯 >

计算机等级考试一种新的C#简繁体转换方法

时间: 未知2 资讯

  1.首先下载Visual Studio International Pack 1.0,地址是

  http://www.microsoft.com/downloads/details.aspx?displaylang=en&FamilyID=44cac7f0-633b-477d-aed2-99aee642fc10

  2.下载解压,安装CHTCHSConv.msi

  3.参考C:\Program Files\Microsoft Visual Studio International Pack\Traditional Chinese to Simplified Chinese Conversion Library and Add-In Tool\ChineseConverter.dll

  4.using Microsoft.International.Converters.TraditionalChineseToSimplifiedConverter;

  5.简体转繁体string des = ChineseConverter.Convert(src, ChineseConversionDirection.TraditionalToSimplified);

  6.繁体转简体string des = ChineseConverter.Convert(src, ChineseConversionDirection.SimplifiedToTraditional);

  另外,这个工具包里面还有CHSPinYinConv.msi汉字拼音相关的,不妨一试。

52767