大约有 12,000 项符合查询结果(耗时:0.0156秒) [XML]
MFC MDI程序, 多个子窗体之间切换时触发什么事件(消息)? - C/C++ - 清泛网...
...子窗体之间切换时触发什么事件(消息)?WM_MDIACTIVATE消息代码:afx_msg void OnMDIActivate(BOOL bActivate, CWnd* pActivateWnd, CWnd* pDeactivateWnd);消息注册:ON_WM_MDIACTIVATE()切换Tab即可触发断点:WM_MDIACTIVATE消息
代码:afx_msg void OnMDIActivate(BOOL bActiv...
一款IP:端口监控工具 服务器端口监控工具[附源码] - C/C++ - 清泛网 - 专注...
...w.tsingfun.com/down/soft/74.html
源码下载:TradeMonitor.zip
主要代码请参考:《mfc telnet 端口,代码实现、不调用telnet.exe》
表格采用GridCtrl(Demo源码):《MFC Grid control 2.27》
端口监控 工具 源码
CListCtrl 点击/双击怎么样获得行号,列号 - C/C++ - 清泛网 - 专注C/C++及内核技术
CListCtrl 点击/双击怎么样获得行号,列号直接看代码,无论列宽是否改变都没问题,亲测有效:afx_msg void OnClickListHqbb(NMHDR* pNMHDR, LRESULT* pResult);...ON_NOTIFY(NM...直接看代码,无论列宽是否改变都没问题,亲测有效:
afx_msg void OnClic...
CString的截取字符串,截取ip:port - C/C++ - 清泛网 - 专注C/C++及内核技术
CString的截取字符串,截取ip:portCString截取ip:port,代码如下:CString strIpPort = "127.0.0.1:8888";CString strIp, strPort;int index = strIpPort.Find('...CString截取ip:port,代码如下:
CString strIpPort = "127.0.0.1:8888";
CString strIp, strPort;
int index = strIpPort.Fi...
c/c++如何获取CPU的序列号? - C/C++ - 清泛网 - 专注C/C++及内核技术
c/c++如何获取CPU的序列号?获取CPU序列表的完整实例代码如下:#include "stdafx.h"#include <afx.h>CString GetCpuSerial(){unsigned long st1 = 0;un...获取CPU序列表的完整实例代码如下:
#include "stdafx.h"
#include <afx.h>
CString GetCpuSerial()
{
unsigne...
C++ 获得当前执行文件的路径 - C/C++ - 清泛网 - 专注C/C++及内核技术
C++ 获得当前执行文件的路径代码如下:TCHAR szPath[_MAX_PATH] = {0};GetModuleFileName(NULL, szPath, MAX_PATH);PathRemoveFileSpec( szPath ); 去掉文件...代码如下:
TCHAR szPath[_MAX_PATH] = {0};
GetModuleFileName(NULL, szPath, MAX_PATH);
PathRemoveFileSpec( szPath ); //...
error C2664: “find_char”: 不能将参数 1 从“const char [14]”转换为“...
...: 不能将参数 1 从“const char [14]”转换为“std::string &出错代码:#include <iostream>#include <string>using std::cout;using std::endl;using std::string; const引用形参举例 非const...出错代码:
#include <iostream>
#include <string>
using std::cout;
using std::endl...
与迭代器失效相关的错误,例如:0x008D1127 处有未经处理的异常(在 prog34.e...
...xe 中): 0xC0000005: 读取位置 0x010AC000 时发生访问冲突。错误代码:#include <iostream>#include <vector>using std::vector;using std::cout;using std::endl; 迭代器失效举例-避免存储end...错误代码:
#include <iostream>
#include <vector>
using std::vector;
using s...
...VC\\INCLUDE\\iterator(93) : error C2039: “push_front”: 不是“std...
...or C2039: push_front:不是std::vector<_Ty>的成员 with [ _Ty=int ]错误代码:int ia[] = {1......VC\INCLUDE\iterator(93) : error C2039: “push_front”: 不是“std::vector<_Ty>”的成员
with
[
_Ty=int
]
错误代码:
int ia[] = {1,5,3,3,4};
...
auto_ptr is not dereferencable - C/C++ - 清泛网 - 专注C/C++及内核技术
auto_ptr is not dereferencable错误如下图所示:错误代码示例: Example : Transferring ownership from one auto_ptr to anothervoi...错误如下图所示:
错误代码示例:
// Example : Transferring ownership from
// one auto_ptr to another
void tes...
