-
c# winform 事件提醒实例源码
c# winform 事件提醒实例源码
- 2014-06-11下载
- 积分:1
-
出图:地图服务和要素类(ESRI.ArcGIS)
出图:地图服务和要素类(ESRI.ArcGIS)
- 2021-04-27 18:08:44下载
- 积分:1
-
ASP.NET 抓取(采集)数据 实例源码
功能介绍: 这是一款ASP.NET的网络抓取数据的程序,有着较好的界面功能。 通过搜索网站或贴吧,根据你需求的关键字抓取网站上的信息,搜索可做扩展! 页面搜索功能设置:搜索网站选择框,采集信息的显示条数及关键字输入框; 显示列表:编号,信息来源,标题,抓取内容,点击率,抓取时间等功能!
- 2016-12-21下载
- 积分:1
-
C# 实现 MD5加密解密算法
using System.Security.Cryptography;using System.IO; using System.Text; ///MD5加密 public string MD5Encrypt(string pToEncrypt, string sKey) { DESCryptoServiceProvider des = new DESCryptoServiceProvider(); byte[] inputByteArray = Encoding.Default.GetBytes(pToEncrypt); des.Key = ASCIIEncoding.ASCII.GetBytes(sKey); des.IV = ASCIIEncoding.ASCII.GetBytes(sKey); MemoryStream ms = new MemoryStream(); CryptoStream cs = new CryptoStream(ms, des.CreateEncryptor(),CryptoStreamMode.Write); cs.Write(inputByteArray, 0, inputByteArray.Length); cs.FlushFinalBlock(); StringBuilder ret = new StringBuilder(); foreach(byte b in ms.ToArray()) { ret.AppendFormat("{0:X2}", b); } ret.ToString(); return ret.ToString(); } ///MD5解密 public string MD5Decrypt(string pToDecrypt, string sKey) { DESCryptoServiceProvider des = new DESCryptoServiceProvider(); byte[] inputByteArray = new byte[pToDecrypt.Length / 2]; for(int x = 0; x < pToDecrypt.Length / 2; x ) { int i = (Convert.ToInt32(pToDecrypt.Substring(x * 2, 2), 16)); inputByteArray[x] = (byte)i; } des.Key = ASCIIEncoding.ASCII.GetBytes(sKey); des.IV = ASCIIEncoding.ASCII.GetBytes(sKey); MemoryStream ms = new MemoryStream(); CryptoStream cs = new CryptoStream(ms, des.CreateDecryptor(),CryptoStreamMode.Write); cs.Write(inputByteArray, 0, inputByteArray.Length); cs.FlushFinalBlock(); StringBuilder ret = new StringBuilder(); return System.Text.Encoding.Default.GetString(ms.ToArray()); }
- 2013-11-13下载
- 积分:1
-
DM Call(大漠插件C#免注册调用类)
Call Dm from net
- 2020-01-10下载
- 积分:1
-
c# 吸附窗体类,仿QQ效果
窗体移动到屏幕边缘会自动伸缩,鼠标移上去的话就显示出来!
- 2013-12-31下载
- 积分:1
-
hex转bin的程序
hex转bin的程序, 支持大于64K的hex, 网上下载的Hex2Bin不支持64k. 包含工程文件, 简单包装即可生成一个Hex2Bin的小程序【核心代码】 String szLine = ""; String szHex = ""; if (szHexPath == "") { MessageBox.Show("请选择需要转换的目标文件! ", "错误"); return; } StreamReader HexReader = new StreamReader(szHexPath); while (true) { szLine = HexReader.ReadLine(); //读取一行数据 if (szLine == null) //读完所有行 { break; } if (szLine.Substring(0, 1) == ":") //判断第1字符是否是: { if (szLine.Substring(1, 8) == "00000001")//数据结束 { break; } szHex = szLine.Substring(9, szLine.Length - 11); //读取有效字符 } } HexReader.Close(); //关闭目标文件 Int32 i; Int32 j = 0; Int32 Length = szHex.Length; byte[] szBin = new byte[Length]; pbConvert.Maximum = Length / 2; for (i = 0; i < Length; i = 2) //两字符合并成一个16进制字节 { szBin[j] = (byte)Int16.Parse(szHex.Substring(i, 2), NumberStyles.HexNumber); j ; pbConvert.Increment(i); } if (szBinPath == "") { szBinPath = Path.ChangeExtension(szHexPath, "bin"); tbBinPath.Text = szBinPath; } FileStream fBin = new FileStream(szBinPath, FileMode.Create); //创建文件BIN文件 BinaryWriter BinWrite = new BinaryWriter(fBin); //二进制方式打开文件 BinWrite.Write(szBin, 0, Length); //写入数据 BinWrite.Flush();//释放缓存 BinWrite.Close();//关闭文件 MessageBox.Show("文件转换完成! ", "提示"); } catch (Exception ex) { MessageBox.Show(ex.ToString()); }
- 2020-12-05下载
- 积分:1
-
iText 的简单用法以及MVC3.0实例
MVC3.0代码示例
- 2014-03-11下载
- 积分:1
-
c++ copy file 示例
c++ copy file 示例
- 2015-01-23下载
- 积分:1
-
学堂在线+C++高级语言程序设计+郑莉+课程所有代码
郑莉老师课程代码,解压后200多M
- 2020-02-15下载
- 积分:1