上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 85 下一页
  2012年10月3日
摘要: SerialPort实现modem的来电显示一个朋友接了个case,但是却临时有事要出差,所以就把部分的功能叫我来做。以 前一直注重于web编程,对于串口编程还是比较陌生的,还好网上的文章不少。当然比较好的文章,有直接帮助的文章还是要数cnblogs里面的文章。把这 写到博客里便于以后自己查阅,希望也能够帮到需要帮助的人。这里主要是讲用serailPort来实现modem的来电显示。来电显示要依赖于具体的modem,不同的modem,可能AT指令不一样,所以需要定义一个接口,将应用程序与硬件的耦合进行解耦。publicinterfaceIModem{voidOpen();voidClose() 阅读全文
posted @ 2012-10-03 17:14 武胜-阿伟 阅读(560) 评论(0) 推荐(0) 编辑
摘要: crystalReportViewer+ReceiveCrystalReport.rpt+DataSet.xsd做报表 crystalReportViewer(报表查看器)+ReceiveCrystalReport.rpt(报表文件)+DataSet.xsd(数据集)1.crystalReportViewer 的ReportSource属性指定一个ReceiveCrystalReport.rpt文件2.添加一个dataset.xsd文件,添加报表要显示的字段信息(一定要与数据库中一致)3.打开ReceiveCrystalReport.rpt文件,在右边窗口DatabaseFields右键(Da 阅读全文
posted @ 2012-10-03 11:19 武胜-阿伟 阅读(1615) 评论(0) 推荐(0) 编辑
摘要: 第一步:添加窗体就不需要我教了吧 ! 在工具箱里面找到CrystalReportViewer控件拖到窗体里面,第二步:右键添加新项 找到数据集 DataSet1.xsd第三步: 继续添加新项 Crystal报表 CrystalReport1.rpt 进入的时候选择空白报表第四步:在DataSet1.xsd 双击进去 右键添加 -TableAdapter 给它命名:此名你自己定义“DsCardConsumption” 然后根据提示连接数据库 然后写SQL语句这个 数据集就算完成了 第五步:在CrystalReport1.rpt 双击进入 左上角找到--- 字段资源管理器 --数据库字段右键 - 阅读全文
posted @ 2012-10-03 11:15 武胜-阿伟 阅读(2840) 评论(0) 推荐(0) 编辑
摘要: // 这个是窗体必须引用的ReportDocument reportDocument = new ReportDocument(); ParameterFields paramFields = new ParameterFields(); ParameterField paramField; ParameterDiscreteValue paramDiscreteValue;paramField = new ParameterField();paramField.Name = "starts “;paramDiscreteValue = new ParameterDiscreteVa 阅读全文
posted @ 2012-10-03 11:14 武胜-阿伟 阅读(431) 评论(0) 推荐(0) 编辑
  2012年10月2日
摘要: 五行系统简表 阅读全文
posted @ 2012-10-02 20:51 武胜-阿伟 阅读(166) 评论(0) 推荐(0) 编辑
  2012年10月1日
摘要: Calculate the Factorial of an Integer in C#By Andrew Rissing, 18 Oct 2011 5.00 (8 votes) Or you could just go the other direction and cache the known results ahead of time. You're only looking at 13 numbers in all, so it is not a big memory hog to just store those known values inside of the meth 阅读全文
posted @ 2012-10-01 08:16 武胜-阿伟 阅读(335) 评论(0) 推荐(0) 编辑
摘要: Enum Display ExtensionBy jim lahey, 30 Oct 2011 5.00 (11 votes) In response to Adrian Cole's comment to the OP - due to living and working in a country where there are four official languages, plus English as a de facto fifth, I've encountered this before.Provided you have the corresponding 阅读全文
posted @ 2012-10-01 08:15 武胜-阿伟 阅读(378) 评论(0) 推荐(0) 编辑
  2012年9月16日
摘要: //declare thisusing System.Runtime.InteropServices;[return: MarshalAs(UnmanagedType.Bool)][DllImport("user32.dll", CharSet = CharSet.Auto, ExactSpelling = true)]public static extern void BlockInput([In, MarshalAs(UnmanagedType.Bool)]bool fBlockIt);private void button1_Click(object sender, 阅读全文
posted @ 2012-09-16 15:15 武胜-阿伟 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 修改目标平台无效,编译仍为X64可: 阅读全文
posted @ 2012-09-16 11:14 武胜-阿伟 阅读(1038) 评论(0) 推荐(0) 编辑
  2012年9月15日
摘要: 软件保护建议 本节将给出关于软件保护的一般性建议,这些都是无数人经验的总结。程序员在设计自己的保护方式时最好能够遵守这里给出的准则,这样会提高软件的保护强度。 (1)软件最终发行之前一定要将可执行程序进行加壳/压缩,使得解密者无法直接修改程序。如果时间允许并且有相应的技术能力,最好是设计自己的加壳/压缩方法。如果采用现成的加壳工具,最好不要选择流行的工具,因为这些工具已被广泛深入地加以研究,有了通用的脱壳/解压办法。另外,最好采用两种以上的不同的工具来对程序进行加壳/压缩,并尽可能地利用这些工具提供的反跟踪特性。(2)增加对软件自身的完整性检查。这包括对磁盘文件和内存映像的检查,以防止有人未. 阅读全文
posted @ 2012-09-15 14:32 武胜-阿伟 阅读(229) 评论(0) 推荐(0) 编辑
上一页 1 ··· 68 69 70 71 72 73 74 75 76 ··· 85 下一页