摘要: 使用版本:4.1.7根据官网提示进行瘦身(看官网),配置如下:一,webconfig中:<configuration> <system.web> <compilation debug="true" targetFramework="4.0" /> <httpRuntime requestValidationMode="2.0" /> </system.web></configuration>二、页面头部,一定要加上ValidateRequest="fal 阅读全文
posted @ 2013-05-04 22:54 King.Thomax 阅读(7279) 评论(1) 推荐(0)
摘要: 前两天,遇到这个问题,折腾到蛋碎。最终成功,一个人经历完成下文,望各位苦逼中的程序员,慎之。由于本人头脑发热,新装系统所以安装环境如下:操作系统:win7 sp1oracle客户端版本:oracle920没有table pc组件。解决方案:把安装的oracle所有版本彻底删除(网上资料较多,不罗嗦)。右键计算机-》属性-》高级系统配置-》环境变量。其中系统变量:变量path的值如:E:\oracleClient\bin;含有oracle路径的值删除,其他不变。注:变量值,以“;”分割。然后重装。 阅读全文
posted @ 2013-04-23 22:13 King.Thomax 阅读(3760) 评论(0) 推荐(0)
摘要: c# 引用非托管代码的DLL库时,代码如下: //引用 [DllImport("AspriseOCR.dll", EntryPoint = "OCR")] public static extern IntPtr OCR(string file, int type);private void btnGetCode_Click(object sender, EventArgs e) { if (!string.IsNullOrEmpty(_strPicPath)) { ... 阅读全文
posted @ 2013-04-04 22:44 King.Thomax 阅读(2255) 评论(1) 推荐(0)
摘要: 搜索不少关于验证码的东东,经过实验识别程度不是很理想,但也能识别90%数字验证码,对字母验证码不是很好。 1 public partial class GetValidCode : Form 2 { 3 private ValidImg _mValidImg; 4 private Bitmap _testMap; 5 private Bitmap[] arrmap =null; 6 public GetValidCode() 7 { 8 InitializeCompon... 阅读全文
posted @ 2013-04-04 14:06 King.Thomax 阅读(3259) 评论(0) 推荐(1)