10 2009 档案

摘要:1、找寻支持QQ HTTP协议的服务器。 大家也许会被一些假像所迷惑,也许会认为QQ的HTTP服务器是基于80口进行通信的(如:218.17.209.23:80),其实不然,正真基于HTTP的服务器应该是:http://tqq.tencent.com:8000,它是一个通过8000口进行通讯的服务器。 由于QQ的HTTP服务器并不支持HTTP协议中GET方法,它支持POST方法。所以我们要给QQ的... 阅读全文
posted @ 2009-10-23 14:16 錯咗
摘要:using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Security.Cryptography; using System.IO; namespace MD5Demo {     class Program  &... 阅读全文
posted @ 2009-10-21 04:51 錯咗
摘要:using System; using System.Text; using System.Security.Cryptography; using System.IO; public class Encrypt { //默认密钥向量 private static byte[] Keys = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF }; /... 阅读全文
posted @ 2009-10-21 03:50 錯咗
摘要:/// <summary>         /// 保存开启启动设置的方法         /// </summary>         private void D... 阅读全文
posted @ 2009-10-21 03:23 錯咗
摘要:Flash播放 首先要确认计算机中有Flash插件,就是IE浏览器浏览网页时能够播放Flash。其实播放Flash时使用了Macromedia公司提供的一个ActiveX组件,该ActvieX组件是SWFLASH.OCX.在系统目录中能够找到。将其引用到项目中,添加步骤如下: 1.选择“工具箱”,单击鼠标右键,在弹出的快捷菜单中选择“选择项”。 2.弹出“选择工具箱项”对话框,选择“COM组件”选... 阅读全文
posted @ 2009-10-20 15:35 錯咗
摘要:using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.... 阅读全文
posted @ 2009-10-19 18:25 錯咗
摘要:  引言 我不知大家早先是如何保存应用程序配置,以备下次打开时使用的,反正我开始学.Net的时候就去研究序列化,以二进制或XML格式的序列化来保存应用程序配置。这样每次都要建立单独的配置类,并书写读写配置代码,相当麻烦。 期间也看了看.config文件的读写方式,感觉还是很麻烦,不如自己序列化来的踏实。 后来才猛然发现微软早提供好了settings,用以定义.config文件内容,... 阅读全文
posted @ 2009-10-19 13:21 錯咗
摘要://获取窗口标题 [DllImport("user32", SetLastError = true)] public static extern int GetWindowText(     IntPtr hWnd,//窗口句柄     StringBuilder lpString,//标题   &... 阅读全文
posted @ 2009-10-18 09:07 錯咗