摘要: 1. Create an IIS Application as below 2. In the physical path, there're 2 files and 1 App_Code folder a. App_code contains the WCF Service contract an 阅读全文
posted @ 2017-06-14 23:40 m苗子 阅读(219) 评论(0) 推荐(0) 编辑
摘要: 1. please keep WCF service running 2. and two ways to achive this a. add Service Reference (will not introduce this since there're so many resources o 阅读全文
posted @ 2017-06-13 23:39 m苗子 阅读(459) 评论(0) 推荐(0) 编辑
摘要: 1. Create a windows service project 2. Add Reference to the assembly which contains the contract and its implementation. 3. Remove the Service1.cs, ad 阅读全文
posted @ 2017-06-13 23:24 m苗子 阅读(432) 评论(0) 推荐(0) 编辑
摘要: 1. == value type, 比较 value (string 比较 value) refrence type, 比较 reference 两个都是null,也返回 true. 2. ReferenceEquals: 只比较Reference Type, 当两个参数是值类型时,先进性封装, 永 阅读全文
posted @ 2017-06-07 23:50 m苗子 阅读(188) 评论(0) 推荐(0) 编辑
摘要: Original URL http://www.codeproject.com/Articles/146838/Remote-debugging-with-Visual-Studio-2010 you may also need to set up window firewall for this. 阅读全文
posted @ 2016-03-29 11:44 m苗子 阅读(428) 评论(0) 推荐(0) 编辑
摘要: 以前提到异常处理,马上就想到加try-catch. 没错,这种应激反应是对的。关键是怎么加?如果想为每一个方法都加异常处理,输出相同格式的异常信息,应该怎么做呢?难道是为每一个方法加一个try-catch, 然后输出相同格式的异常信息?假如有一天,我们输出处理异常的方式变了或者异常信息格式变了,我们... 阅读全文
posted @ 2014-09-30 18:34 m苗子 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 问题使用DevExpress开发的程序,在开发机上可以正常运行,在别的机器上无法运行。解决方法网上搜罗了一下,发现导致问题的原因是在GAU中缺少DevExpress.Data.v11.2.dll和DevExpress.Utils.v11.2.dll。于是借鉴伍华聪的解决方案,注册文件稍微修改如下:版本:V11.2.11.0注册文件:@echo offgacutil -u DevExpress.Data.v11.2mkdir %windir%\assembly\GAC_MSIL\DevExpress.Data.v11.2\11.2.11.0__b88d1754d700e49acopy DevEx 阅读全文
posted @ 2012-07-23 16:56 m苗子 阅读(9076) 评论(1) 推荐(0) 编辑
摘要: 1.关于常量引用正像在C语言中使用指针一样,C++中通常使用引用有一个函数...foo()并且这个函数返回一个引用......&foo()....,一个指向位图(Bitmap)的引用...Bitmap&foo()....并且这个位图(bitmap)是常量constBitmap&foo()当然你也可以用指针来做同样的事情:constBitmap*foo()foo返回一个指针...指向一个Bitmap...并有这个Bitmap是个常量.Bitmap*constfoo()foo返回某个东西,这个东西是常量...这个东西又是指针...一个指向Bitmap的指针.constBit 阅读全文
posted @ 2012-04-10 15:22 m苗子 阅读(2519) 评论(0) 推荐(0) 编辑
摘要: 打开eWebEditor\include下面的editor.js文件(各版本不同,路径也会不同,点击搜索就能找到这个文件),有这样的段代码: if (element.YUSERONCLICK) eval(element.YUSERONCLICK + "anonymous()"); 改成:if(navigator.appVersion.match(/MSIE (7|8)\./i)!=null || navigator.appVersion.match(/MAXTHON/i)=='MAXTHON'){ if (element.YUSERONCLICK) eval 阅读全文
posted @ 2012-04-06 11:35 m苗子 阅读(532) 评论(8) 推荐(0) 编辑
摘要: http://blog.csdn.net/keensword/article/details/401114写的很不错 阅读全文
posted @ 2012-04-05 11:07 m苗子 阅读(151) 评论(0) 推荐(0) 编辑