06 2011 档案

C#PDU编码8BIT加密解密函数和短信GSM加密解密用到的不错的一个类
摘要:原文地址:http://www.wangchao.net.cn/bbsdetail_50338.htmlusing System;using System.Collections.Generic;using System.Linq;using System.Text;namespace SmsTest{ /// /// By popcorn 2004.5。 /// cnpopcorn@hotmail.com /// public class CNText { public CNText() { } /// /// 编码格式 /// public enum GSMCode { Bit7 ... 阅读全文

posted @ 2011-06-30 14:16 风灵溪清 阅读(402) 评论(0) 推荐(0)

C#PDU编码UCS2加密解密函数
摘要:原文地址:http://www.cnblogs.com/ycdx2001/archive/2011/04/24/2026468.html //////UCS2解码//////UCS2源串///解码后的UTF-16BE字符串publicstaticstringDecodeUCS2(stringsrc){stringdecucs=src.Remove(src.IndexOf("/r"));stringpstr="^[0-9a-fA-F]+$";if(!Regex.IsMatch(decucs,pstr)){return"非法字符串无法解析!&quo 阅读全文

posted @ 2011-06-30 10:04 风灵溪清 阅读(315) 评论(0) 推荐(0)

手机短信PDU字符串中用到的7bit加密解密函数
摘要:原文参考:http://www.cnblogs.com/Engin/archive/2010/11/07/1871154.html整理的代码如下: /// /// PDU字符串用到的7bit的加密函数 /// /// 用户数据长度 /// 数据部分PDU字符串 /// public string PDU7bitContentEncoder(string strUserData) { string result = string.Empty; string resultLength = strUserData.Length.ToString("X2"); //7bit编码 用 阅读全文

posted @ 2011-06-29 17:56 风灵溪清 阅读(225) 评论(0) 推荐(0)

PostgreSQL函数用法
摘要:测试环境:win2003+PostgreSQL8.3(PostgreSQL89.0的不好用)一、创建数据库语言1.打开「开始」菜单/程序/PostgreSQL 8.3/命令提示符2.执行命令“createlang -U postgres plpgsql postgres”如(E:/Program Files/PostgreSQL/8.3/bin>createlang -U postgres plpgsql postgres)二、创建数据库create table co_schedule(n_progid int,dt_starttime timestamp,dt_endtime time 阅读全文

posted @ 2011-06-19 18:03 风灵溪清 阅读(245) 评论(0) 推荐(0)

SQL2008数据库结构查询SQL
摘要:SELECT TOP 100 PERCENT a.id,CASE WHEN a.colorder = 1 THEN d.name ELSE '' END AS 表名,a.colorder AS 字段序号, a.name AS 字段名,CASE WHEN COLUMNPROPERTY(a.id,a.name, 'IsIdentity') = 1 THEN '√' ELSE '' END AS 标识,CASE WHEN EXISTS(SELECT 1FROM dbo.sysindexes si INNER JOIN dbo.sysin 阅读全文

posted @ 2011-06-09 16:20 风灵溪清 阅读(104) 评论(0) 推荐(0)

VS2010转VS2008和VS2005方法
摘要:原文地址:http://www.cnblogs.com/panjun/archive/2011/03/03/1969862.html原文地址:http://www.blueidea.com/microsoft/vs2010/2010_con/2010082301.htm安装了VS2010后,用它打开以前的VS2005项目或VS2008项目,都会被强制转换为VS2010的项目,给没有装VS2010的电脑带来不能打开高版本项目的麻烦。一、将.sln文件中的Microsoft Visual Studio Solution File, Format Version 11.00# Visual Stud 阅读全文

posted @ 2011-06-02 17:09 风灵溪清 阅读(131) 评论(0) 推荐(0)

导航