// remove the pinyin of all national standard Chinese characters, put it in a table, then Isolated., Also Windows 98 and other comitary // input method generators, reverse transformation of Pinyin output //
This article is to provide you with reference. And written as a DLL file to everyone.
public string Getpingyin (string strName, System.Data.OleDb.OleDbConnection con, System.Data.SqlClient.SqlConnection sqlcon) {System.Data.SqlClient.SqlDataAdapter sqlda; System.Data.OleDb.OleDbDataAdapter oleda; string strSimple = ""; Strname = strname.trim (); system.data.dataset mydataset = new system.data.dataset (); if (strname.length> 0) {for (int NUM = 0; Num System.windows.Forms.MessageBox.show ("You Enter Characters /" " Strname [Num] .tostring () " Not Chinese Characters, please correct "," Error ", System.Windows.Forms.MESSAGEBOXBUTTONS. OK, System.Windows.Forms.MessageBoxicon.stop); Return ""; String strsql = "SELECT Chinese characters, first letters from Pinyin first letters"; string strwhere = "Where Chinese characters = '" strname [0] .tostring () "'"; // Query Chinese characters, SQL for letter with letters (int i = 1; i ""; " } // Usage example // oledbconnection con = New .........; / getPingyin ("I", con, null; return W Here's this is a database file, which is taken from others. Want to DLL file, contact me HuangWeiling@126.com http://www.lqjt.com/data/py.rar