-
大小: 15.62MB文件類型: .zip金幣: 2下載: 3 次發布日期: 2023-07-31
- 語言: 其他
- 標簽:
資源簡介
完美驗證碼識別系統V3.2.1.zip--驗證碼識別通用組件,有詳細教程和調用說明!!
代碼片段和文件信息
using?System;
using?System.Drawing;
using?System.IO;
using?System.Runtime.InteropServices;
using?System.Text;
using?System.Windows.Forms;
namespace?WmCode_Demo
{
///?
///?Description?of?MainForm.
///?
public?partial?class?MainForm?:?Form
{
public?MainForm()
{
//
//?The?InitializeComponent()?call?is?required?for?Windows?Forms?designer?support.
//
InitializeComponent();
//
//?TODO:?Add?constructor?code?after?the?InitializeComponent()?call.
//
}
void?MainFormLoad(object?sender?System.EventArgs?e)
{
????????????textBox1.Text?=?System.Environment.CurrentDirectory?+?“\\網易論壇.dat“;
}
????????[DllImport(“WmCode.dll“)]
????????public?static?extern?bool?LoadWmFromFile(string?FilePath?string?Password);
????????[DllImport(“WmCode.dll“)]
????????public?static?extern?bool?LoadWmFromBuffer(byte[]?FileBuffer?int?FileBufLen?string?Password);
????????[DllImport(“WmCode.dll“)]
????????public?static?extern?bool?GetImageFromFile(string?FilePath?StringBuilder?Vcode);
????????[DllImport(“WmCode.dll“)]
????????public?static?extern?bool?GetImageFromBuffer(byte[]?FileBuffer?int?ImgBufLen?StringBuilder?Vcode);
????????[DllImport(“WmCode.dll“)]
????????public?static?extern?bool?SetWmOption(int?OptionIndex?int?OptionValue);
[DllImport(“urlmon.dll“?EntryPoint=“URLDownloadToFileA“)]
public?static?extern?int?URLDownloadToFile(int?pCaller?string?szURL?string?szFileName?int?dwReservedint?lpfnCB);
void?Button1Click(object?sender?System.EventArgs?e)
{
?????????????if?(LoadWmFromFile(textBox1.Text?“163“))
{
????????????????SetWmOption(6?90);
button2.Enabled?=?true;
button3.Enabled?=?true;
}
}
void?Button2Click(object?sender?EventArgs?e)
{
button2.Enabled?=?false;
string?ImgURL?=?textBox2.Text;
string?ImgPath?=?System.Environment.CurrentDirectory?+?“\\temp.tmp“;
URLDownloadToFile(0ImgURLImgPath00);
pictureBox1.Image?=?Image.FromFile(ImgPath);
button2.Enabled?=?true;
}
void?Button3Click(object?sender?EventArgs?e)
{
button3.Enabled?=?false;
StringBuilder?Result?=?new?StringBuilder(‘\0‘256);?
string?ImgPath?=?System.Environment.CurrentDirectory?+?“\\temp.tmp“;
//以下使用GetImageFromBuffer接口
FileStream?fsMyfile?=?File.OpenRead(ImgPath);?
int?FileLen?=?(int)fsMyfile.Length;
byte[]?Buffer?=?new?byte[FileLen];?
fsMyfile.Read?(Buffer?0?FileLen);?
fsMyfile.Close();
if(GetImageFromBuffer(BufferFileLenResult))
textBox3.Text?=?Result.ToString();
else
textBox3.Text?=?“識別失敗“;
button3.Enabled?=?true;
}
}
}
?屬性????????????大小?????日期????時間???名稱
-----------?---------??----------?-----??----
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\
?????文件??????437760??2017-07-27?20:39??完美驗證碼識別系統V3.2.1\WmCode.dll
?????文件??????486102??2017-07-27?20:41??完美驗證碼識別系統V3.2.1\Wmcode_Dll易語言內存調用模塊源碼.e
?????文件??????994304??2015-12-08?11:37??完美驗證碼識別系統V3.2.1\sqlite3.dll
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\
?????文件?????????863??2016-02-24?17:44??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode.sln
?????文件???????18432??2016-06-21?21:20??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode.suo
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\
?????文件????????7217??2016-02-27?23:10??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\MainForm.Designer.cs
?????文件????????2759??2016-02-27?23:31??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\MainForm.cs
?????文件????????5817??2016-02-27?23:10??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\MainForm.resx
?????文件?????????634??2016-02-24?17:43??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\Program.cs
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\Properties\
?????文件????????1075??2016-02-24?17:36??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\Properties\AssemblyInfo.cs
?????文件????????2559??2016-02-24?17:35??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\WmCode.csproj
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\
?????文件??????437760??2017-07-27?20:39??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\WmCode.dll
?????文件????????9728??2016-03-06?19:07??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\WmCode_C#.exe
?????文件???????22016??2016-03-06?19:07??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\WmCode_C#.pdb
?????文件???????14848??2016-06-21?21:18??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\WmCode_C#.vshost.exe
?????文件?????????490??2013-06-18?20:24??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\WmCode_C#.vshost.exe.manifest
?????文件????????1567??2016-02-27?23:06??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\checkcode.jpg
?????文件????????1576??2016-02-27?23:21??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\temp.bmp
?????文件????????1612??2016-03-06?19:07??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\temp.tmp
?????文件????????2864??2016-02-28?00:07??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\bin\Debug\網易論壇.dat
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\obj\
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\obj\x86\
?????目錄???????????0??2017-12-28?15:49??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\obj\x86\Debug\
?????目錄???????????0??2017-12-28?15:50??完美驗證碼識別系統V3.2.1\其它各種語言調用例子\C#調用列子\WmCode_C#\obj\x86\Debug\Refactor\
............此處省略166個文件信息
評論
共有 條評論