上一页 1 2 3 4 5 6 7 8 ··· 14 下一页
摘要: 开始--运行--cmd 进入命令提示符 输入netstat -ano 即可看到所有连接的PID 之后在任务管理器中找到这个PID所对应的程序如果任务管理器中没有PID这一项,可以在任务管理器中选"查看"-"选择列" 经常,我们在启动应用的时候发现系统需要的端口被别的程序占用,如何知道谁占有了我们需要的端口,很多人都比较头疼,下面就介绍一种非常简单的方法,希望对大家有用 假如我们需要确定谁占用了我们的9050端口 1、Windows平台 在windows命令行窗口下执行: 1.查看所有的端口占用情况C:\>netstat -ano 协议 本地地址 外 阅读全文
posted @ 2012-04-12 21:45 szjdw 阅读(182) 评论(0) 推荐(0) 编辑
摘要: com即组件对象模型,是component object model取前三个字母的缩写,这三个字母在当今Windows的世界中随处可见。随时涌现出来的大把大把的新技术都以com为基础。各种文档中也充斥着诸如com对象、接口、服务器之类的术语。因此,对于一个程序员来说,不仅要掌握使用com的方法,而且还要彻底熟悉com的所有一切。com到底是什么?简单地说,com是一种跨应用和语言共享二进制代码的方法。与C++不同,他提倡源代码重用。ATL便是一个很好的例证。源码级重用虽然好,但只能用于C++.他还带来了名字冲突的可能性,更不用说不断拷贝重用代码而导致工程膨胀和臃肿。windows使用dlls在 阅读全文
posted @ 2012-04-11 18:27 szjdw 阅读(3130) 评论(0) 推荐(0) 编辑
摘要: 今天看到博客园一篇文章写抽象类实例化,net framework是ms的,我改不了abstract。但是抽象类是可以做出实例化效果的。为了增强记忆,把代码抄一遍吧!protected sealed override Delegate CombineImp(Delegate follow){ if(base.GetType()!=follow.GetType()) { throw new Exception(); } Delegate delegate2=(MulticastDelegate)((MulticastDelegate)follow).MemberwiseClone()... 阅读全文
posted @ 2012-04-06 19:26 szjdw 阅读(139) 评论(0) 推荐(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Class1 { static void Main(System.String[] args) { Set.Feedback fb= new Set.Feedback(Class1.FeedbackToConsole); for (System.Int32 i = 0; i < 5;i++ ) { new Set(3).ProcessingItem(fb 阅读全文
posted @ 2012-04-06 11:26 szjdw 阅读(193) 评论(0) 推荐(0) 编辑
摘要: 方法一:using System;using System.Collections.Generic;using System.Linq;using System.Text;namespace ConsoleApplication1{ class Class1 { static void Main(System.String[] args) { for (System.Int32 i = 0; i < 5;i++ ) { new Set(3).ProcessingItem(Class1.FeedbackToConsole); } Console.Read(); } static void 阅读全文
posted @ 2012-04-06 10:51 szjdw 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 在方法表中包含了虚方法表,里面包含了一些指向隐藏在类型方法背后的代码的指针。既然虚方法表中包含了指向代码的指针,那么这些方法本身如何自行描叙?这个问题的答案就在与方法描叙符。在方法描叙符中包含了关于方法的详细信息,例如方法的文本表示,他所在的模块,以及实现方法的代码的地址。要找到指定方法的方法描叙符,可以使用扩展命令dumpmt,同时使用开关-md.例如,如果在调试器下运行ConsoleApplication1.exe,并且将局部变量myObject的方法表转存出来(dump),那么可以看到以下内容:!dumpmt -md 00a138ccEEClass: 00a114bcModule: 00 阅读全文
posted @ 2012-04-02 18:11 szjdw 阅读(911) 评论(0) 推荐(0) 编辑
摘要: 错误1“ConsoleApplication1.Test”不能从特殊类“System.MulticastDelegate”派生D:\xgc\0331\Solution1\ConsoleApplication1\Program.cs5211ConsoleApplication1不能从特殊类System.MuticastDelegate派生! 阅读全文
posted @ 2012-03-31 11:17 szjdw 阅读(192) 评论(0) 推荐(0) 编辑
摘要: ///<summary>///根据查询条件生成SQL语句与SQL参数///</summary>protected System.String BuildConditionSql(Condition condition,IList outputParas){ if(condition==null) { return null; } else if(condition is SimpleCondition) { return BuildSimpleConditionSql(condition as SimpleCondition,outputParams); } else. 阅读全文
posted @ 2012-03-28 20:04 szjdw 阅读(314) 评论(0) 推荐(0) 编辑
摘要: ///<summary>///根据查询条件集合生成Sql语句与Sql参数///<summary>protected System.String BuildConditionSetSql(ConditionSet conditionSet,IList outputParams){ List<System.String> conditions=new List<System.String>(); foreach(Condition subCondition in conditionSet.SubConditions) { System.String 阅读全文
posted @ 2012-03-28 19:28 szjdw 阅读(334) 评论(0) 推荐(0) 编辑
摘要: declare @storeid nvarchar(2) declare @prdtid nvarchar(10) declare @start nvarchar(20) declare @end nvarchar(20) declare @inno nvarchar(20) declare @strSql nvarchar(4000) declare @tempno nvarchar(4000) set @storeid='01' set @prdtid='0230157' set @start='2012-03-21 12:00' set @ 阅读全文
posted @ 2012-03-23 18:25 szjdw 阅读(152) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页