摘要: 想记些单词,在记事本里,乱的。 今早花了一个多小时写了个文本排1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Linq;4usingSystem.Text;5usingSystem.Windows;6usingSystem.Windows.Controls;7usingSystem.Windows.Data;8usingSystem.Windows.Documents;9usingSystem.Windows.Input;10usingSystem.Windows.Media;11usingSystem.Windows.Me 阅读全文
posted @ 2012-03-21 10:13 轻尘 阅读(939) 评论(0) 推荐(0) 编辑
摘要: 最近使用使用VS2008,发现相比VS2005代码可以少写不少.看一眼就会用的就不说了.例1:泛型代理Action,Func如窗体的BeginInvoke,代理想用就用,再也不需要独立声明了.///<summary>///更新节点///</summary>///<paramname="mes"></param>privatevoidUpdataTreeNodeInvoke(stringparent,stringnodeText,intindex){if(InvokeRequired){this.BeginInvoke(newA 阅读全文
posted @ 2011-11-28 09:27 轻尘 阅读(145) 评论(0) 推荐(0) 编辑
摘要: //非vcqmake -projectqmake//vc的编译 vs2008在其命令提示符下输入qmake -project -t vcapp -o mytest1.proqmakevs2008 程序的发布debug版本用的是QT中的debug版本的dll库,即为后面带d字符的。release则用的是发布版本的。dll需要添加 G:\Program Files\Microsoft Visual S... 阅读全文
posted @ 2009-12-14 15:29 轻尘 阅读(986) 评论(0) 推荐(0) 编辑
摘要: 主板:双敏狙击手TAC53-DF+玩家限量版 V2 ¥590CPU: AMD 羿龙X3 8650(盒) ¥535内存:金士顿2GB DDR2 800(窄板) 2*150元 ¥300 硬盘: WD 808.8GB 32MB(绿版) ¥490机箱+电源:先马 385W ¥310光驱:索尼AD-7200A ¥180显示器:飞利浦220CW9 ¥1280键鼠: 双飞燕 ¥50周六,买了台新机器,追求性价比... 阅读全文
posted @ 2009-06-16 09:07 轻尘 阅读(152) 评论(0) 推荐(0) 编辑
摘要: using System.Text.RegularExpressions;Regex.IsMatch(text, @"[\u4e00-\u9fa5]")//含有汉字 阅读全文
posted @ 2009-06-01 10:31 轻尘 阅读(192) 评论(0) 推荐(0) 编辑
摘要: 在.Net Compact Framework 里是不支持Array.Resize<byte>(ref buffer, newLength );自己编写添加功能的支持。[代码] 阅读全文
posted @ 2009-05-26 10:13 轻尘 阅读(312) 评论(0) 推荐(0) 编辑
摘要: 蓝牙库程序下载:http://32feet.codeplex.com/SourceControl/ListDownloadableCommits.aspx当连接成功,正常发送数据,此时另一方蓝牙关闭再打开,依然能发送成功。另一方却收不到数据。只能断开再连接才行。哎,一直还没找到解决的办法。[代码] 阅读全文
posted @ 2009-05-18 15:06 轻尘 阅读(764) 评论(0) 推荐(0) 编辑
摘要: CREATE VIRTUAL TABLE创建虚拟表stmt : 一个虚表是一个接口,外部存储或计算引擎,它似乎是一个表,但实际上并没有存储信息的数据库文件。 一般情况下,您可以做任何事情,以虚表 ,可以做一个普通的表,但你不能创建索引或触发器的虚拟表。.有些虚表的实现可能会施加额外的限制。 例如,许多虚拟表是只读的。虚拟表中不能使用共享缓存模式 。 该<module-name>的名字是... 阅读全文
posted @ 2009-05-08 14:28 轻尘 阅读(3184) 评论(0) 推荐(0) 编辑
摘要: 1. System.Diagnostics.Process.GetCurrentProcess().MainModule.FileName 获取模块的完整路径。2. System.Environment.CurrentDirectory 获取和设置当前目录(该进程从中启动的目录)的完全限定目录。3. System.IO.Directory.GetCurrentDirectory() 获取应用程序... 阅读全文
posted @ 2009-05-07 11:14 轻尘 阅读(238) 评论(0) 推荐(0) 编辑