原文:winform 记录全局异常捕获这篇文章主要是备用记录winform程序捕获全局异常。
/// /// 应用程序的主入口点。 /// public static ApplicationContext context; [STAThread]
private static void Main()...
常用功能:安装Package
Control:https://sublime.wbond.net/多行选择、多行编辑鼠标选中多行,按下 Ctrl+Shift+L
(Command+Shift+L) 即可同时编辑这些行;鼠标选中文本,反复按 CTRL+D (Command+D) 即可继续向下同时选中下...
分类:
其他好文 时间:
2014-05-08 21:37:03
阅读次数:
431
出现乱码需要检查的项目:数据库编码、文件本身的字符集、html解析的字符集,如若上述项目编码一致仍然出现乱码,查看一下浏览器的编码,如果和设置的不一样说明上述设置有部分未成功,可以尝试使用header()函数再转化一下。FYI:1.
header("Content-type: text/html; ...
分类:
Web程序 时间:
2014-05-08 21:28:22
阅读次数:
331
当使用EF中context.SaveChanges()的时候会报一串让查看详细信息的错误,这个错误不是真正的报错原因,如果想看真正的原因,要关掉EF的验证,如下:context.Configuration.ValidateOnSaveEnabled
= false;后在调用SaveChanges()...
分类:
其他好文 时间:
2014-05-08 21:27:51
阅读次数:
256
转自:http://blog.csdn.net/jymn_chen/article/details/21036035首先科普一下静态库的相关知识:程序编译一般需经预处理、编译、汇编和链接几个步骤。对于我们项目中的一些公共代码,如果想要对其进行复用,可以把这些代码编译成一个静态库文件。在链接步骤中,链...
分类:
其他好文 时间:
2014-05-08 21:13:34
阅读次数:
488
[DllImport("advapi32.DLL", SetLastError =
true)]public static extern int LogonUser(string lpszUsername, string lpszDomain,
string lpszPassword, int dw...
分类:
其他好文 时间:
2014-05-08 21:05:26
阅读次数:
274
18.public class Test{ public static void
add3(Integer i) { int val=i.intvalue(); val+=3; i=new Integer(val); } ...
分类:
其他好文 时间:
2014-05-08 21:03:25
阅读次数:
348
private static void syncMetaData() { var
siteUrl = @"http://..."; using (var site = new SPSite(siteUrl)) { ...
分类:
其他好文 时间:
2014-05-08 20:59:41
阅读次数:
271
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;using
System.IO;namespace DirectoryCopy...
分类:
其他好文 时间:
2014-05-08 20:30:59
阅读次数:
381
using System;using System.Collections.Generic;using
System.Linq;using System.Text;using System.Threading.Tasks;using System.IO;using
System.Net;using ...
分类:
其他好文 时间:
2014-05-08 20:30:34
阅读次数:
389