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

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

C++中判断文件、目录是否存在的几种方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...用系统的一些函数,但这种方法稍微显得复杂一些。 WIN32_FIND_DATA wfd; bool rValue = false; HANDLE hFind = FindFirstFile(strPath.c_str(), &wfd); if ((hFind != INVALID_HANDLE_VALUE) && (wfd.dwFileAttributes & FILE_ATTRIBUTE_DIRECTORY)) { std::cout << "this file exists" ...
https://www.tsingfun.com/it/cpp/1456.html 

C++/COM VARIANT实现二维数组 - C/C++ - 清泛网 - 专注C/C++及内核技术

...用更方便。COleSafeArray和SAFEARRAY之间的关系就是MFC类库和Win32 SDK的关系,使用步骤类似。 使用COleSafeArray实现二维数组的源代码如下所示: VARTYPE vt = VT_I4; /*数组元素的类型,long*/ SAFEARRAYBOUND sab[2]; /*用于定义数组的维数和...
https://www.tsingfun.com/it/cpp/1492.html 

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

...亲测有效,使用SHFileOperation函数:#include "stdafx.h"#include <windows.h>int _tmain(int argc, _TCHAR*...直接上代码,可直接运行亲测有效,使用SHFileOperation函数: #include "stdafx.h" #include <windows.h> int _tmain(int argc, _TCHAR* argv[]) { LPTSTR de...
https://www.tsingfun.com/it/cpp/1493.html 

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

...FindNextFile,支持 * 通配符查找文件,核心代码如下: WIN32_FIND_DATA FindFileData; char szCurPath[MAX_PATH + 1] = { 0 }; GetCurrentDirectory(MAX_PATH, szCurPath); CString findFileName; findFileName.Format("%stest*.txt", szCurPath); HANDLE hFind = ::FindFirstFile(findFileNa...
https://www.tsingfun.com/it/cpp/1587.html 

应用程序无法正常启动0xc0150002 - C/C++ - 清泛网 - 专注C/C++及内核技术

...150002。-----------------------解决思路-------------------------打开Windows事件查看器(我的电脑右键...MFC写的程序启动不了,报错 0xc0150002。 -----------------------解决思路------------------------- 打开Windows事件查看器(我的电脑右键“管理”>>“...
https://www.tsingfun.com/it/cpp/1614.html 

在ATL无窗口ActiveX 控件中如何使用定时器? - C/C++ - 清泛网 - 专注C/C++及内核技术

...的环境下。 对于ATL无窗口的情况,只能使用原始SetTimer Win32 API函数,如下: 回调函数: VOID CALLBACK TimerProc( HWND hwnd, // 定时器消息的窗口句柄 UINT message, // WM_TIMER 消息 INT_PTR idTimer, // 定时器标志 DWOR...
https://www.tsingfun.com/it/cpp/2026.html 

c/c++如何判断指针无效?如NULL,0xcccccccc,0xfeeefeee,野指针等 - C/C++ -...

...p, UINT nBytes, BOOL bReadWrite /* = TRUE */) { // simple version using Win-32 APIs for pointer validation. return (lp != NULL && !IsBadReadPtr(lp, nBytes) && (!bReadWrite || !IsBadWritePtr((LPVOID)lp, nBytes))); } 指针无效,0xcccccccc,0xfeeefeee,野指针
https://www.tsingfun.com/it/cpp/2146.html 

__declspec(dllexport) 导出符号解决链接失败问题 - C/C++ - 清泛网 - 专注C/C++及内核技术

...,不可放在class的前面。 再来个跨平台版本: #ifdef WIN32 #ifdef XXX_EXPORTS #define XXX_API __declspace(dllexport) #elif defined USE_LIB #define XXX_API #else #define XXX_API __declspace(dllimport) #endif #define XXX_LOCAL #else #ifdef XXX_EXPORTS ...
https://www.tsingfun.com/it/tech/1631.html 

Building an MFC project for a non-Unicode character set is deprecated ...

...信息 1>------ 已启动全部重新生成: 项目: xxx 配置: Debug Win32 ------ 1>C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\Microsoft.CppBuild.targets(376,5): error MSB8031: Building an MFC project for a non-Unicode character set is deprecated. You must change the project propert...
https://www.tsingfun.com/it/tech/2282.html 

window+nginx+php-cgi的php-cgi线程/子进程问题 - 更多技术 - 清泛网 - 专注C/C++及内核技术

window+nginx+php-cgi的php-cgi线程/子进程问题见bbshttp: bbs csdn net topics 390803643 close正常的配置情况下,window的php-cgi是不会出现多线程 子进程的,例如以下配置fastcgi_pass 见bbs http://bbs.csdn.net/topics/390803643/close 正常的配置情况下,window...