大约有 2,100 项符合查询结果(耗时:0.0172秒) [XML]

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

MFC AFX_WM_CREATETOOLBAR消息相关 - C/C++ - 清泛网 - 专注C/C++及内核技术

...有自定义按钮): 以上均为MFC MDI多窗口默认生成的代码,大家可以多调试研究。AFX_WM_CREATETOOLBAR EnablePaneMenu EnableCustomizeButton
https://www.tsingfun.com/it/cpp/1276.html 

boost自定义composite_key_compare比较函数 - C/C++ - 清泛网 - 专注C/C++及内核技术

...std::string>也可以。 另外,上述例子仅作为验证Demo,实际代码中建议ID类型直接使用std::string,可以避免一些字符串被释放导致查询不到的情况,这时可以在自定义的比较函数中下断点进行调试。 boost composite_key_compare 自定义
https://www.tsingfun.com/it/cpp/1280.html 

C++11 tuple 这一篇就够了 - C/C++ - 清泛网 - 专注C/C++及内核技术

...ie()函数的使用方便的对tuple进行“解包”操作。看下面的代码: #include <iostream> #include <tuple> int main () { int myint; char mychar; float myfloat; std::tuple<int,float,char> mytuple; mytuple = std::make_tuple (10, 2.6, 'a'); // packing va...
https://www.tsingfun.com/it/cpp/1282.html 

解决:Run-Time Check Failure #0,The value of ESP was not properly sav...

...n with a function pointer declared with a different calling convention. 代码改为如下, 则问题没有了: typedef int (WINAPI *PFUN)(HWND hWnd, LPCTSTR lpText, LPCTSTR lpCaption, UINT uType) 若是出现在CGridCtrl的DeleteRow函数中,则有可能是对单元格进行了非预...
https://www.tsingfun.com/it/cpp/1300.html 

Win32 创建控件风格不是Win XP的解决方案 - C/C++ - 清泛网 - 专注C/C++及内核技术

...MANIFEST "TestCtrlStyle.manifest" 注意,有时候,加这样一句代码在资源文件中,链接时会出错: 1>Linking... 1>CVTRES : fatal error CVT1100: duplicate resource. type:MANIFEST, name:1, language:0x0409 1>LINK : fatal error LNK1123: failure during conve...
https://www.tsingfun.com/it/cpp/1335.html 

半个汉字的校验与处理(C++) - C/C++ - 清泛网 - 专注C/C++及内核技术

...生新的半个汉字。 以下是我近期对半个汉字的处理,C++代码如下: // strSrc: 原始字符串 // nMaxLen: 截断后的最大长度 char *GetTruncate(char *strSrc, int nMaxLen) { if (strSrc == NULL || nMaxLen == 0) { return NULL;...
https://www.tsingfun.com/it/cpp/1354.html 

BugTrap:程序崩溃快照、bug跟踪之利器 - C/C++ - 清泛网 - 专注C/C++及内核技术

...出崩溃信息对话框,直接将崩溃包保存文件,只需将上述代码改为: static void SetupExceptionHandler() { LOG_TRACER(); BT_InstallSehFilter(); // 配置信息 BT_SetAppName(_T("MarketInfo")); //自动保存crash文件 BT_SetReportFilePath(_T("crash")...
https://www.tsingfun.com/it/cpp/1361.html 

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

...初始化时加入 DeclareDumpFile(); 创建头文件DumpFile.h, 将下列代码放进文件中: #pragma once #include <windows.h> #include < Dbghelp.h> #include <iostream> #include <vector> using namespace std; #pragma comment(lib, "Dbghelp.lib") namespace NSDumpFile { ...
https://www.tsingfun.com/it/cpp/1365.html 

由“Pure Virtual Function Called” 考虑到的 - C/C++ - 清泛网 - 专注C/C++及内核技术

.../887598.html (分析汇编,底层而完善) 一些短小的验证代码:Pure_Virtual_Function_Called考虑到的.rar Pure Virtual Function Called
https://www.tsingfun.com/it/cpp/1372.html 

Boost智能指针——shared_ptr - C/C++ - 清泛网 - 专注C/C++及内核技术

... 不要构造一个临时的shared_ptr作为函数的参数。 如下列代码则可能导致内存泄漏(当函数g()抛异常的时候就会泄露了,这个是boost文档上特地注明的标准bad Practices): void test() { foo(boost::shared_ptr<implementation>(new implementati...