大约有 35,550 项符合查询结果(耗时:0.0416秒) [XML]

https://www.tsingfun.com/it/cpp/1435.html 

std::find,std::find_if使用小结 - C/C++ - 清泛网 - 专注C/C++及内核技术

... operator()(ProductAccount p) { return (product.compare(p.Product) == 0); } std::string product; } finder_t; int _tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { ProductAccountVec vecProductAccount; ProductAccount pa1 = {"p1", "a1"}; vecProductAccount.push_back(pa1); Pr...
https://www.tsingfun.com/it/cp... 

MFC Telnet Application(mfc telnet 端口,代码实现、不调用telnet.exe) ...

...码工程升级后,可能出现编译不过的情况,请将stdafx.h中0x0410全部改为0x0501即可。The article demonstrates an MFC GUI Telnet application with server capabilities for incoming connections support. Download demo - 29.9 KB Download source - 42.1 KB Introduction I've d...
https://www.tsingfun.com/it/cpp/1469.html 

MFC SysLink的使用方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...DR; if (wcscmp(pNMLink->item.szUrl, L"https://www.tsingfun.com") == 0) { // 主要执行语句 ShellExecuteW(NULL, L"open", pNMLink->item.szUrl, NULL, NULL, SW_SHOWNORMAL); } *pResult = 0; } MFC SysLink
https://www.tsingfun.com/it/cpp/1491.html 

c++ boost库 序列化与反序列化 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ch (...) { return -1; } return 0; } //从文件加载结构体数据 template<typename TemplateStruct> int load(TemplateStruct & templateStruct,const std::string &strFileName,const unsigned int version = SERIALIZATION_VERSION) { try {...
https://www.tsingfun.com/it/cpp/1512.html 

c++编译错误:invalid new-expression of abstract class type - C/C++ - ...

...要实现,这样才能new 子类。 纯虚函数例如 void fun() = 0; 是纯虚函数,不是纯虚函数不作要求。 另外,void fun() { } 空函数体也是实现。 纯虚函数相当于C#中abstract抽象类。 =0 说明函数是抽象的方法,谁继...
https://www.tsingfun.com/it/cpp/1528.html 

sizeof、strlen简单总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

... p4字符串长度std::string4字符串长度"......"字符串长度+1 (' 0')字符串长度 sizeof strlen const char* p 4 字符串长度 std::string 4 字符串长度 "......" 字符串长度+1 ('\0') 字符串长度 sizeof strlen 总结
https://www.tsingfun.com/it/cpp/1560.html 

获取控件的值的几种方法总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...:CString str;GetDlgItemText(IDC_EDIT_TEST, str);int d=atoi(str.GetBuffer(0));更优雅的:.h:int m_editTest;.cpp:v...最简单直观的: CString str; GetDlgItemText(IDC_EDIT_TEST, str); int d=atoi(str.GetBuffer(0)); 更优雅的: .h:int m_editTest; .cpp: void CxxDlg::DoDat...
https://www.tsingfun.com/it/cpp/1570.html 

一款IP:端口监控工具 服务器端口监控工具[附源码] - C/C++ - 清泛网 - 专注...

...P:端口监控工具 服务器端口监控工具[附源码]TradeMonitor v1 0功能介绍:监控ip:port,类似于telnet命令。界面清晰简洁,异常连接的情况一目了然。支持添加、编辑、删除、移动ip:port TradeMonitor v1.0 功能介绍: 监控ip:port,类似于te...
https://www.tsingfun.com/it/cpp/1605.html 

MFC 菜单背景色设置(菜单重绘) - C/C++ - 清泛网 - 专注C/C++及内核技术

... { DrawTopMenu(m_dc,m_rect,m_str,(m_state&ODS_SELECTED)||(m_state&0x0040)); //0x0040 ==ODS_HOTLIGHT // DrawItemText(m_dc,m_str,m_rect); break; } case -1: { DrawItemText(m_dc,m_str,m_rect); break; } case 0: { DrawSeparater(m_dc,m_rect); b...
https://www.tsingfun.com/it/cpp/1618.html 

更改MFC对话框默认的窗口类名 - C/C++ - 清泛网 - 专注C/C++及内核技术

...我们可以直接使用它们。比如,对话框的窗口类为“#32770”,按钮的窗口类为“Button”,列表框的窗口类为“ListBox”……等等。 很多时候,我们需要用到FindWindow函数来查找已经存在的窗口,然后给它发送消息。或者查询系统...