IT
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 55 下一页
摘要: //服务器重启服务,作者:柳永法 www.yongfa365.comusing System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Diagnostics;using System.ServiceProcess;using System.IO;using... 阅读全文
posted @ 2010-06-22 14:31 liufei 阅读(392) 评论(0) 推荐(0) 编辑
摘要: publicclassListItem { privatestring_key=string.Empty; privatestring_value=string.Empty; publicListItem(stringpKey,stringpValue) { _key=pKey; _value=pValue; } publicoverridestringToString() { returnthi... 阅读全文
posted @ 2010-06-22 14:30 liufei 阅读(243) 评论(0) 推荐(0) 编辑
摘要: 最近一直在研究。Net Micro Framework字体文件(tinyfnt),由于tinyfnt文件头部有一段描述数据,所以很想定义一个结构体,像VC一样直接从文件中读出来,省得用流一个个解析很是麻烦。   没有想到在C#中竟没有直接的指令,想必C#设计者认为提供了流和序列化技术,一切问题都可以迎刃而解了。  在C#中结构体是一个比较复杂的东西,在此之上有很多需要设置的参数,否则用起来就很容易... 阅读全文
posted @ 2010-06-18 15:42 liufei 阅读(386) 评论(0) 推荐(0) 编辑
摘要: 一般来说winform应用程序解决这个问题起来时很容易的,web应用程序就麻烦一点了。【示例源码下载】这里我说说我的解决思路:一、你必要有联机型居民身份证阅读器一个(带驱动光盘),这里我用的是精伦电子公司的iDR200,并有这个阅读器的开发接口说明。二、新建一个winform控件项目ReadCardControl,添加一个主类ReadCard1、 声明dll入口[DllImport("Sdtapi... 阅读全文
posted @ 2010-06-17 17:56 liufei 阅读(855) 评论(0) 推荐(0) 编辑
摘要: 在写程序的时候,我们经常需要对页面进行传参数,比如page?id=1234,那么在page这个页面中就直接可以使用string id = Request.QueryString["id"];来获取参数id的值1234了。这是一个人人都知道的基础知识。上面的方法:Request.QueryString,它会把传入的URL进行分析,并把结果保存在一个键值(key value)的Collection中,... 阅读全文
posted @ 2010-05-28 08:35 liufei 阅读(619) 评论(0) 推荐(0) 编辑
摘要: 摘要 网络上的IP数据库以纯真版的最为流行,LumaQQ也采用了纯真版IP数据库做为IP查询功能的基础。不过关于其格式的文档却非常之少,后来终于在网上找到了一份文档,得以了解其内幕,不过那份文档寥寥数语,也是颇为耐心才读明白。在这里我重写一份,以此做为LumaQQ开发者文档的一部分,我想还是必要的。本文详细介绍了纯真IP数据库的格式,并且给出了一些Demo以供参考。 Luma, 清华大学修改日期:... 阅读全文
posted @ 2010-05-28 08:34 liufei 阅读(372) 评论(0) 推荐(0) 编辑
摘要: 关键字: oracle 数据库 blob 字段 图片 存储 保存 插入 需要打开源码 改一下数据源和表名还有字段名 C#代码 usingSystem; usingSystem.Collections.Generic; usingSystem.ComponentModel; usingSystem.Data; usingSystem.Drawing; usingSystem.Text; usingS... 阅读全文
posted @ 2010-05-19 13:32 liufei 阅读(619) 评论(0) 推荐(1) 编辑
摘要: c# winform下sql图片二进制存储/读取/显示/写入XML/读取XML显示 winform下: //存储 private void MemoryImage() { string sql = ""; //string conn = "Provider=SQLNCLI;Da ta Source=192.168.0.9,1433;Database=WebDown;UID=sa;PWD=11112... 阅读全文
posted @ 2010-05-18 13:56 liufei 阅读(957) 评论(0) 推荐(1) 编辑
摘要: "Data Source=MYLINK;user=tgzza;password=tgzza;";加了一个Unicode=True;string connstr="Provider=MSDAORA.1;Data Source=数据库;Persist Security Info=False;User ID=用户名;Password=密码;Unicode=True;pooling = true̶... 阅读全文
posted @ 2010-05-13 15:53 liufei 阅读(664) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Text; using System.Management;namespace CS{ class Program { static void Main(string[] args) { PrintMotherBoardInfo(); Console.WriteLi... 阅读全文
posted @ 2010-05-11 16:15 liufei 阅读(801) 评论(0) 推荐(0) 编辑
上一页 1 ··· 17 18 19 20 21 22 23 24 25 ··· 55 下一页