資源簡介
繁簡轉(zhuǎn)換工具
代碼片段和文件信息
using?System;
using?System.Collections.Generic;
using?System.Linq;
using?System.Runtime.InteropServices;
using?System.Text;
using?System.Threading.Tasks;
using?Microsoft.Office.Interop.Word;
using?System.Reflection;
namespace?ChangeCodeTool
{
????public?static?class?ChineseConverter
????{
????????internal?const?int?LOCALE_SYSTEM_DEFAULT?=?0x0800;
????????internal?const?int?LCMAP_SIMPLIFIED_CHINESE?=?0x02000000;
????????internal?const?int?LCMAP_TRADITIONAL_CHINESE?=?0x04000000;
????????///??
????????///?使用OS的kernel.dll做為簡繁轉(zhuǎn)換工具,只要有裝OS就可以使用,不用額外引用dll,但只能做逐字轉(zhuǎn)換,無法進(jìn)行詞意的轉(zhuǎn)換?
????????///?所以無法將電腦轉(zhuǎn)成計(jì)算機(jī) ?
????????///? ?
????????[DllImport(“kernel32“?CharSet?=?CharSet.Auto?SetLastError?=?true)]
????????internal?static?extern?int?LCMapString(int?Locale?int?dwMapFlags?
?屬性????????????大小?????日期????時(shí)間???名稱
-----------?---------??----------?-----??----
?????文件??????23552??2015-11-19?18:20??ChangeCodeTool.exe
-----------?---------??----------?-----??----
????????????????23552????????????????????1
評論
共有 條評論