大约有 14,000 项符合查询结果(耗时:0.0211秒) [XML]

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

ON_COMMAND_RANGE 用法 - C/C++ - 清泛网 - 专注C/C++及内核技术

ON_COMMAND_RANGE 用法申明消息宏 + 回调函数模型,其他没什么好解释。BEGIN_MESSAGE_MAP(CxxDialog, CDialog) ON_COMMAND_RANGE(IDC_BUTTON_1, IDC_BUTTON_ALL, OnButtonClick) END_MESSAGE_MAP() afx_msg void OnButtonClick(UINT nID);ON_COMMAND_RANGE, MFC
https://www.tsingfun.com/it/cpp/1342.html 

libcurl网络连接使用tcp/ip - C/C++ - 清泛网 - 专注C/C++及内核技术

... /* always cleanup */ curl_easy_cleanup(curl); } //对于错误处理 if( res == CURLE_OK && iolen > 0 ) { //处理数据 printf("Received %lu bytes.\n", iolen); } elseif( res == CURLE_RECV_ERROR) { CCAssert(...
https://www.tsingfun.com/it/cp... 

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

...调用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....
https://www.tsingfun.com/it/cpp/1492.html 

vc/mfc *通配符 批量删除文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

...0'也一样,笔者亲测,删除有时成功有时失败。 改用C++FindNextFile,支持 * 通配符查找文件,核心代码如下: WIN32_FIND_DATA FindFileData; char szCurPath[MAX_PATH + 1] = { 0 }; GetCurrentDirectory(MAX_PATH, szCurPath); CString findFileName; findFileName....
https://www.tsingfun.com/it/cpp/1493.html 

SHFileOperation 这个API函数怎么用起来结果飘忽不定? - C/C++ - 清泛网 -...

...,笔者亲测,删除有时成功有时失败。 解决: 改用C++FindNextFile,支持 * 通配符查找文件,核心代码如下: WIN32_FIND_DATA FindFileData; char szCurPath[MAX_PATH + 1] = { 0 }; GetCurrentDirectory(MAX_PATH, szCurPath); CString findFileName; findFileName....
https://www.tsingfun.com/it/cpp/1498.html 

c++读注册表 - C/C++ - 清泛网 - 专注C/C++及内核技术

...CESS == rc) { path = szBuffer; //处理读出来值 RegCloseKey(hKey); } } c++ 注册表
https://www.tsingfun.com/it/cpp/1542.html 

控件不响应OWNERDRAW消息 - C/C++ - 清泛网 - 专注C/C++及内核技术

... .... } } 中自绘不生效,调用CListCtrlRedrawItem后不触发OnDrawItem函数。 这是由于没有设置自绘项,设置方法如下: 控件右键“属性”: OWNERDRAW 消息
https://www.tsingfun.com/it/cpp/1630.html 

error MSB6006: “cmd.exe”已退出,代码为 3 - C/C++ - 清泛网 - 专注C/C++及内核技术

...台电脑上使用cmake编译后拷贝到另一台电脑上,但是cmake路径与原电脑不一致从而导致以上错误。 解决方法:新电脑上重新使用cmake生成一次工程文件即可解决。error MSB6006 cmake
https://www.tsingfun.com/it/cpp/2038.html 

error C2440: \'initializing\' : cannot convert from \'char *\' to \'co...

...用string::const_iterator 后者使用下标操作来获取string对象中字符。 error C2440
https://www.tsingfun.com/it/cpp/2092.html 

error C2440: “return”: 无法从“const Screen”转换为“Screen &” - C/...

...办法: c++语言规定,不能从const成员函数返回指向类对象普通引用,const成员函数只能返回*this作为一个const引用。因此解决办法即是,把成员函数声明为 const Screen& display(std::ostream &os) const; error C2440 const