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

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

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

...本程序会尝试收集仅与此次异常崩溃相关的数据,请将此报告发送给我们以便帮助我们开发体验更好的产品,给您造成的不便之处敬请谅解!")); BT_SetSupportEMail(_T("futures_bugreport@tsingfun.com")); // BTF_DETAILEDMODE:崩溃时记录dump文...
https://www.tsingfun.com/it/cpp/1423.html 

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

...C中的CMapStringToPtr之类。关键是ARG_KEY要选LPCTSTR,否则编译报错。 CMap<CString, LPCTSTR, int, int> typeMap; typeMap.SetAt(_T("ONE"), 1); typeMap.SetAt(_T("TWO"), 2); //其余用法同上例 CMap的用法: 头文件: afxtempl.h CMap的格式: template<c...
https://www.tsingfun.com/it/cpp/1484.html 

error C2275: “size_t”: 将此类型用作表达式非法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...13(最新补丁SP4及以上)编译器可以支持此类C语法,不会报上述错误。表达式 类型
https://www.tsingfun.com/it/cpp/1506.html 

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

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

[解决]错误对话框\"Encountered an improper argument.\" - C/C++ - 清泛网 - 专注C/C++及内核技术

...stions/441867/Encountered-an-improper-argument // nItem为-1的时候,报上述错误 m_ListCtrl.SetItemText(nItem, 1, Item[numItems]); 抑或是: 解决了,是链表处理的时候没做必要的判断。 综上:主要是判断逻辑不完善,导致访问不存在的索引导...
https://www.tsingfun.com/it/cpp/2094.html 

error C2758: “ConstInit::cival”: 必须在构造函数基/成员初始值设定项列...

...rival以及const类型cival都没有在初始化列表中初始化,因此报错。解决办法就是在初始化列表中初始化这些特殊的类成员。如下例所示: //const成员初始化 #include <iostream> using std::cout; class ConstInit { public: ConstInit(int i=0):ival(...
https://www.tsingfun.com/it/cpp/2209.html 

jsoncpp 不能处理__int64(long long)类型数据 - C/C++ - 清泛网 - 专注C/C++及内核技术

...变得很简单! 但是,今天在用jsoncpp进行生成json的时候报了错误,很显然这不是我程序的问题。 Test.cpp: In function &lsquo;std::string createJsonData()&rsquo;: Test.cpp:41: error: conversion from &lsquo;long long int&rsquo; to &lsquo;const Json::Value&rsquo; is ...
https://www.tsingfun.com/it/cpp/2219.html 

rpcndr.h和wtypes.h冲突的解决方法 - C/C++ - 清泛网 - 专注C/C++及内核技术

...线程进行休眠的时候用到了window。h头文件,生成的时候报错如下: 1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(156) : error C2632: “char”后面的“int”非法 1>c:\program files\microsoft sdks\windows\v6.0a\include\rpcndr.h(156) : warning C4091: ...
https://www.tsingfun.com/it/tech/1386.html 

Mac OS X Git安装教程 - 更多技术 - 清泛网 - 专注C/C++及内核技术

...到。 检查 /usr/ local/bin 路径 ( bin 代表 binary,编译的 Git 报存在子目录中)。 如果不再,打开 .profile 添加到最后。 export PATH=”/usr/local/bin:$PATH” 保存关闭 .profile 文件后,重启 Terminal。运行 echo $PATH 应该看到 /usr/local/bin ...
https://www.tsingfun.com/it/tech/1674.html 

C#泛型(List)中基类和子类 怎么转换? - 更多技术 - 清泛网 - 专注C/C++及内核技术

...Foo(baseList); 这种方式是单向的,只能子类转基类,反之报错: 方法三: 函数参数使用泛型 public string Foo<T>(List<T> list) where T : BaseClass { ... } Foo(childList); 方法四: Foo(IEnumerable<BaseClass> baseList); Foo(childList);C# 基类 子类 ...