Roger Luo

超越梦想一起飞
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
上一页 1 2 3 4 5 6 7 8 ··· 14 下一页

2013年4月27日

摘要: ? Differences between CreateThread and _beginthread ! There are four methods to terminate sub thread return from the end of the function ExitThread itself TerminateThread by other thread ... 阅读全文

posted @ 2013-04-27 21:30 Roger Luo 阅读(140) 评论(0) 推荐(0) 编辑

2013年4月25日

摘要: Format ZIP 是一个计算机文件的压缩的算法,原名Deflate(真空),发明者为菲尔·卡茨(Phil Katz)),他于1989年1月公布了该格式的资料。ZIP通常使用后缀名“.zip”,它的MIME格式为 application/zip 。目前,ZIP格式属于几种主流的压缩格式之一,其竞争者包括RAR格式以及开放源码的7-Zip格式。从性能上比较,RAR格式较ZIP格式压缩率较高,而... 阅读全文

posted @ 2013-04-25 19:06 Roger Luo 阅读(346) 评论(0) 推荐(0) 编辑

2013年4月24日

摘要: Zlib official website is www.zlib.net References 开源代码:http://www.zlib.net/ zlib使用手册:http://www.zlib.net/manual.html zlib wince版:http://www.tenik.co.jp/~adachi/wince/ Zlib dll named as Zlib1... 阅读全文

posted @ 2013-04-24 19:29 Roger Luo 阅读(326) 评论(0) 推荐(0) 编辑

2013年4月17日

摘要: TreeView添加快键菜单有两种方法: 一种就是使用TreeView的ContextMenuStrip属性,添加一个新ContextMenuStrip,这个方法非常的简答直接,缺点是右键菜单是整个控件响应的,也就是说即使没有右键选中节点也是会触发快捷菜单的显示 这种方法里获取哪一个的node选中是通过这个方法:TreeNode curNode = this.trvFolder.GetNode... 阅读全文

posted @ 2013-04-17 22:46 Roger Luo 阅读(824) 评论(0) 推荐(0) 编辑

2013年4月16日

摘要: 出现这个错误基本由于Lambda中没有显示地说明返回值类型,而是由编译器自己推断返回值。下面是从C++11官方文档中抄过来的 If a lambda-expression does not include a trailing-return-type, it is as if the trailing-return-type denotes the following type: ... 阅读全文

posted @ 2013-04-16 13:35 Roger Luo 阅读(337) 评论(0) 推荐(0) 编辑

2013年4月13日

摘要: hello private void Mainform_Shown(object sender, EventArgs e) { //// show loginguide dialog //Form loginguide = new LoginGuideForm(); //if (DialogResult... 阅读全文

posted @ 2013-04-13 11:39 Roger Luo 阅读(146) 评论(0) 推荐(0) 编辑

2013年4月10日

摘要: 缺省IIS管理器是不支持INI文件下载的,需要对其进行如下设置 1. 打开IIS管理器,对需要支持的网站右键选择属性 2. 接着点击添加新的MIME类型在HTTPheader中 3. 接着选择添加按钮,并且按下图输入参数ini扩展后缀,以及对应的MIME类型为application/octet-stream 4. 保存设置并且重启IIS服务 阅读全文

posted @ 2013-04-10 14:48 Roger Luo 阅读(2627) 评论(0) 推荐(0) 编辑

2013年4月1日

摘要: TabPage没有Visible属性,所以只能通过设置将其与父控件(tabcontrol)的关联性去除就好了,如下面代码: this.tclMain.Controls["tpgSize"].Parent = null; this.tclMain.Controls["tpgColor"].Parent = null; 上述代码将原本是tabcontrol(tclMain)中的两个TabPag... 阅读全文

posted @ 2013-04-01 08:04 Roger Luo 阅读(6391) 评论(0) 推荐(0) 编辑

2013年3月26日

摘要: 以前得到DataSet的时候都是利用直接写sql语句(适合初学者) public static DataSet GetDs(string sqlstr) { ds = new DataSet(); sqlconn = new SqlConnection(); sqlconn.ConnectionString =... 阅读全文

posted @ 2013-03-26 19:20 Roger Luo 阅读(7759) 评论(0) 推荐(0) 编辑

摘要: wstring to string string CUtility::TCHAR2char(TCHAR* tchStr){ int iLen = 2*wcslen(tchStr); char* chRtn = new char[iLen+1]; memset(chRtn, 0, iLen + 1); wcstombs(chRtn,tchStr,iLen+1); ... 阅读全文

posted @ 2013-03-26 14:59 Roger Luo 阅读(1467) 评论(0) 推荐(0) 编辑

上一页 1 2 3 4 5 6 7 8 ··· 14 下一页