- 博客(10)
- 收藏
- 关注
原创 sscanf
for (iLoop = 0; iLoop { sscanf(pcStr + iLoop, "%x", &iTemp); pbyMacAddr[iLoop / 3] = (BYTE)iTemp; }
2008-12-09 15:48:00 383
原创 取一个BYTE的高四位 和 低四位
acKi[loop] = (((ptItemData->abyKi)[loop/2]&0xF0)>>4) + 0;acKi[loop+1] =((ptItemData->abyKi)[loop/2]&0x0F)+ 0;
2008-12-02 16:53:00 2256
转载 CreateThread
CreateThreadThe CreateThread function creates a thread to execute within the address space of the calling process. HANDLE CreateThread( LPSECURITY_ATTRIBUTES lpThreadAttributes, // pointer to
2008-11-26 15:43:00 1503
转载 debugger显示内容函数 [VOID OutputDebugString]
OutputDebugStringThe OutputDebugString function sends a string to the debugger for the current application. VOID OutputDebugString( LPCTSTR lpOutputString // pointer to string to be displayed
2008-11-26 15:31:00 599
转载 shutdown 关机命令(2000中没有shutdown命令,XP中的shutdown命令可以复制出来,到2000中完全可用)
用法: shutdown [-i | -l | -s | -r | -a] [-f] [-m //computername] [-t xx] [-c "comment"] [-d up:xx:yy] 没有参数 显示此消息(与 ? 相同) -i 显示 GUI 界面,必须是第一个选项 -l 注销(不能与选项 -m 一起使用) -s 关闭此计算机 -r 关闭并重启动此计算机 -a 放弃系统关机 -m /
2008-11-21 15:47:00 835
转载 c语言中static 变量
c语言中static 变量1. static 变量 静态变量的类型说明符是static。 静态变量当然是属于静态存储方式,但是属于静态存储方式的量不一定就是静态变量。 例如外部变量虽属于静态存储方式,但不一定是静态变量,必须由 static加以定义后才能成为静态外部变量,或称静态全局变量。2. 静态局部变量静态局部变量属于静态存储方式,它具有以下特点:(1)静态局
2008-11-20 10:49:00 399
转载 数值转换(Convert/Int32)
//<![CDATA[var theForm = document.forms[aspnetForm];if (!theForm) { theForm = document.aspnetForm;}function __doPostBack(eventTarget, eventArgument) { if (!theForm.onsubmi
2008-11-11 15:57:00 4311
原创 实现按钮在点选 和 未选时,有不同的背景图片
方法一:1,按钮属性 Owner Drew选上,按钮ID: IDC_BUTTON1 2 在资源视中,右键点击按钮,添加变量。选择CButton类,变量名是m_button。 在CxxDlg.H文件中将CButton m_button;改为CBitmapButton m_button; 3 在初始化OnInitDialog()里边 m_button.LoadBitmaps(_T("IDB
2008-11-11 15:31:00 762
原创 ping包 命令格式 用法集
ping命令的用法 验证与远程计算机的连接。该命令只有在安装了 TCP/IP 协议后才可以使用。 ping [-t] [-a] [-n count] [-l length] [-f] [-i ttl] [-v tos] [-r count] [-s count] [[-j computer-list] | [-k computer-list]
2008-11-07 09:58:00 10720
原创 基于单个对话框工程中,CListBox控件上实现 选择/复制功能(不要写CListBox的派生类)
谢谢友情帮顶的诸位 该问题已经自行解决: 解决方法如下:在PreTranslateMessage函数中对右键信息进行截获,判断已经选择项目后,弹出menu if(WM_RBUTTONDOWN == pMsg->message) if(pMsg->hwnd == GetDlgItem(IDC_LIST_MSG)->GetSafeHwnd()) if (LB_ERR !=m_List_Msg.GetC
2008-10-29 16:15:00 1522
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人