大约有 15,580 项符合查询结果(耗时:0.0255秒) [XML]

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

一个宏命令,就可以程序崩溃时生成dump文件 - C/C++ - 清泛网 - 专注C/C++及内核技术

... // TODO: MiniDumpWriteDump FatalAppExit(-1, _T("Fatal Error")); return EXCEPTION_CONTINUE_SEARCH; } void RunCrashHandler() { SetUnhandledExceptionFilter(UnhandledExceptionFilterEx); PreventSetUnhandledExceptionFilter(); } }; #...
https://www.tsingfun.com/it/cpp/1362.html 

VS2005中SetUnhandledExceptionFilter函数应用 - C/C++ - 清泛网 - 专注C/C++及内核技术

...在X86平台下,可以使用以下代码。 #ifndef _M_IX86 #error "The following code only works for x86!" #endif void DisableSetUnhandledExceptionFilter() { void *addr = (void*)GetProcAddress(LoadLibrary(_T("kernel32.dll")), ...
https://www.tsingfun.com/it/cpp/1371.html 

PHP报错:Only variables should be passed by reference - C/C++ - 清泛网 - 专注C/C++及内核技术

...函数返回值 解决办法 2 : 或则如果这样配置的话: error_reporting = E_ALL | E_STRICT PHP 报错
https://www.tsingfun.com/it/cpp/1443.html 

c++ Timer使用总结 - C/C++ - 清泛网 - 专注C/C++及内核技术

...e( &msg, NULL, 0, 0 )) != 0) { if (bRet == -1) { // handle the error and possibly exit } else if(msg.message == WM_TIMER) { count++; printf("WM_TIMER in work thread count=%d\n", count); if(count > 4) break; } else { TranslateMessage(&msg); D...
https://www.tsingfun.com/it/cpp/1492.html 

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

...ileOperation(&FileOp) != 0) printf("删除文件:%S失败(Error:%d)\n", delFileName, GetLastError()); return 0; } 经过测试,文件路径必须为绝对路径,相对路径会操作失败。 获取当前路径拼上相对路径代码如下: char szDelPath[MAX...
https://www.tsingfun.com/it/cpp/1503.html 

预编译头文件来自编译器的早期版本,或者预编译头为 C++ 而在 C 中使用它(...

...有 .c 和 .cpp 源文件,则可能收到 C1853 编译器错误:fatal error C1853: 'pjtname.pch' precompiled header file is from a previous version of the compiler, or the precompiled header is C++ and you are using it from C (or vice versa)(致命错误C1853: “filename.pch”预编译头文...
https://www.tsingfun.com/it/cpp/1506.html 

std::vector find查找方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...),.end()一定不要忘记了后面的括号,否则报如下错误: error C3867: “std::vector<_Ty>::end”: 函数调用缺少参数列表;请使用“&std::vector<_Ty>::end”创建指向成员的指针vector find
https://www.tsingfun.com/it/cpp/1918.html 

CListCtrl 如何设置单元格颜色? - C/C++ - 清泛网 - 专注C/C++及内核技术

...ad.Add(Linetitle); pos=m_ColListCtrl.AddItem(&Head); if (pos!=LISTCTRL_ERROR) ; } //设置背景色、前景色 m_ColListCtrl.SetItemBackgndColor(ITEM_COLOR(BackColIndex), int (m_IntItemPos), int (m_IntItemSubPos) ); m_ColListCtrl.SetItemTextColor(ITEM_COLOR(TextColIndex), int (m_IntItemPo...
https://www.tsingfun.com/it/cpp/2097.html 

与迭代器失效相关的错误,例如:0x008D1127 处有未经处理的异常(在 prog34.e...

...) cout<<*first<<endl; ivec.insert(ivec.begin(),1); //cause fatal error for(vector<int>::iterator first = ivec.begin();first != end;++first) cout<<*first<<endl; return 0; } 解决办法: 这里保存了end操作返回的迭代器,然后又在容器中执行插入操作,导...
https://www.tsingfun.com/it/cpp/2104.html 

auto_ptr is not dereferencable - C/C++ - 清泛网 - 专注C/C++及内核技术

...pt2.get() << std::endl; pt2->someFunc(); // OK pt1->someFunc(); // error! following a null pointer } // as we go out of scope, pt2's destructor // deletes the pointer, but pt1's does nothing auto_ptr在拷贝时会转移内存控制权,例子中pt1赋值给pt2后,将内存管理权...