- 博客(5)
- 资源 (2)
- 收藏
- 关注
转载 CString、TCHAR*、char*转换
CString、TCHAR*、char*转换har*、TCHAR*转换CString CString str(****) 下面详细写一下其它转换 ////////////////////////////// /* *********************************************************************** * 函
2014-01-10 09:38:30
377
转载 字符串哈希算法
1./// @brief BKDR Hash Function 2./// @detail 本 算法由于在Brian Kernighan与Dennis Ritchie的《The C Programming Language》一书被展示而得 名,是一种简单快捷的hash算法,也是Java目前采用的字符串的Hash算法(累乘因子为31)。 3.template 4.size_t B
2013-12-10 19:32:53
690
转载 how to make dword with high/low word or high/low byte
Assuminng the Win32 definition:Dowrd make of Byte,BYTE lsb =0x11 ;BYTE next_lsb =0x22:BYTE next_msb =0x33:BYTE msb =0x44:DWORD dword_from_bytes =(msb 24)| (next_msb 1
2013-12-06 18:21:04
1023
原创 compile configuration in vs2010
When there are fairly a number of projects in the solution of vs2010 compile environment, clarify the relations among them is needed, following are two principles about it: First,project dependen
2013-12-06 13:13:21
459
原创 端口的识别方法
对于曾经接入的设备,在注册表里面都会记录,如果用扫描注册表的方法获取设备,曾经的记录都会被扫描出来,且CreateFile打开端口是成功的,如果要得到当前接入的设备,需要用SetCommState方法来对注册表里面的记录进行筛选。另一种方法是SetupDiEnumDeviceInfo:获取当前接入的设备,再通过设备属性筛选。两种方法的过程是相反的,前者是先得到特定的设备,不管是否接入,只要曾经
2011-11-09 13:13:36
607
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人