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

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/1507.html 

VS工程“生成事件”之文件拷贝 - C/C++ - 清泛网 - 专注C/C++及内核技术

... "$(SolutionDir)$(ConfigurationName)\conf\" (/D 只复制时间戳最新文件,/Y 不提示覆盖,/E 递归子目录) 实际上就是执行copy、xcopy等Dos命令,具体用法可参照Dos帮助。$(SolutionDir)等宏命令可参考: VS 拷贝事件 文件拷贝
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
https://www.tsingfun.com/it/cpp/2107.html 

[完整实例源码]C&C++修改文件只读属性 - C/C++ - 清泛网 - 专注C/C++及内核技术

..._tmain(int argc, TCHAR* argv[], TCHAR* envp[]) { //指定要读取文件属性 CString strPath = "d:\\test.txt"; DWORD dwAttrs = GetFileAttributes(strPath); //空32,只读33,隐藏34,只读隐藏35 if (dwAttrs & FILE_ATTRIBUTE_READONLY && (dwAttrs < 34)) { //去掉文件...