摘要:
1.通過注冊(cè)表獲取,缺點(diǎn),兼容性差1 //RegistryKey userKey = Registry.CurrentUser;2 //RegistryKey key = userKey.OpenSubKey(@"RemoteAccess\Profile");3 //string[] keysList = key.GetSubKeyNames();//獲取當(dāng)前創(chuàng)建的adsl寬帶列表2.通過api獲取,兼容性比上面好#region 獲取adsl所有寬帶連接名稱[StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto
閱讀全文
摘要:
1.第一種,不安全,當(dāng)線程過多后,timer控件和線程中同時(shí)訪問窗體控件時(shí),有時(shí)會(huì)出現(xiàn)界面重繪出錯(cuò)。public frmMain() { InitializeComponent(); System.Windows.Forms.Control.CheckForIllegalCrossT...
閱讀全文
摘要:
可識(shí)別一些簡(jiǎn)單驗(yàn)證碼//google的tesseract識(shí)別,導(dǎo)入tessnet2_32.dll,識(shí)別速度不如ocrprivate void button27_Click(object sender, EventArgs e){ if (pictureBox3.Image != null) { Bitmap map = (Bitmap)pictureBox3.Image; tessnet2.Tesseract ocr = new tessnet2.Tesseract();//聲明一個(gè)OCR類 string txt = ""; ...
閱讀全文
摘要:
可識(shí)別一些簡(jiǎn)單驗(yàn)證碼//http://www.rzrgm.cn/longbo///可識(shí)別字母數(shù)字和符號(hào)[DllImport("AspriseOCR.dll", EntryPoint = "OCR")]public static extern IntPtr OCR(string file, int type);//識(shí)別條形碼[DllImport("AspriseOCR.dll", EntryPoint = "OCRBarCodes")]static extern IntPtr OCRBarCodes(strin
閱讀全文