随笔 - 547  文章 - 213 评论 - 417 阅读 - 107万

08 2018 档案
boost::make_function_output_iterator报错: C4996
摘要:用VS2013运行boost::make_function_output_iterator的官方例子: https://www.boost.org/doc/libs/1_68_0/libs/iterator/doc/function_output_iterator.html 1 2 3 4 5 6 阅读全文
posted @ 2018-08-28 16:17 今夜太冷 阅读(599) 评论(0) 推荐(0) 编辑
How to copy the contents of std::vector to c-style static array,safely?
摘要:[问题] I am getting warning when using the std copy function. I have a byte array that I declare. Then I have a couple other byte arrays that are declar 阅读全文
posted @ 2018-08-28 10:59 今夜太冷 阅读(268) 评论(0) 推荐(0) 编辑
std::vector push_back报错Access violation
摘要:C/C++ code ? 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 #include <vector> #include <string> #include <iostream> struct Pe 阅读全文
posted @ 2018-08-27 15:45 今夜太冷 阅读(1160) 评论(0) 推荐(0) 编辑
Structured Exception Handling
摘要:https://docs.microsoft.com/en-us/windows/desktop/Debug/structured-exception-handling An exception is an event that occurs during the execution of a pr 阅读全文
posted @ 2018-08-27 14:03 今夜太冷 阅读(302) 评论(0) 推荐(0) 编辑
Catch a Memory Access Violation in C++
摘要:From: https://stackoverflow.com/questions/16612444/catch-a-memory-access-violation-in-c In C++, is there a standard way (or any other way, for that ma 阅读全文
posted @ 2018-08-27 13:45 今夜太冷 阅读(723) 评论(0) 推荐(0) 编辑
Windows上的字符转换之CP_ACP和CP_OEMCP
摘要:原文地址:http://blog.sina.com.cn/s/blog_53c1950a010158mw.html Windows API函数MultiByteToWideChar用于多字节编码字符串向宽字符串(即UTF-16 LE)的转码。它的第一个参数的常用值是CP_ACP和CP_OEMCP。这 阅读全文
posted @ 2018-08-24 21:28 今夜太冷 阅读(1895) 评论(0) 推荐(0) 编辑
Initialize a vector in C++ (5 different ways)
摘要:https://www.geeksforgeeks.org/initialize-a-vector-in-cpp-different-ways/ Following are different ways to create and initialize a vector in C++ STL Ini 阅读全文
posted @ 2018-08-21 11:43 今夜太冷 阅读(234) 评论(0) 推荐(0) 编辑
MFC中使用ATL报错:error C4430: missing type specifier - int assumed. Note: C++ does not support default-int
摘要:我在MFC中使用ATL函数A2W的时候报如下的错误: error C4430: missing type specifier - int assumed. Note: C++ does not support default-int 【解决方法】 https://www.xuebuyuan.com/ 阅读全文
posted @ 2018-08-18 20:41 今夜太冷 阅读(544) 评论(0) 推荐(0) 编辑
C++ WINDOWS下 wchar_t *和char * 相互转化总结篇
摘要:说道wchar_t和char两个类型大家都不会陌生 wchar_t:在windows下是Unicode 16编码,也就是俗称宽字节 char:当然就是指一个字节,在windows下面默认是gbk编码的 所以在windows 下 wchar_t 转 char也就是编码转化 直接贴出wchar_t *字 阅读全文
posted @ 2018-08-18 19:35 今夜太冷 阅读(13411) 评论(0) 推荐(0) 编辑
VS2008 编译出错 fatal error C1859: unexpected precompiled header error, simply rerunning the compiler might fix this problem
摘要:https://jingyan.baidu.com/article/d8072ac49ebd23ec95cefddd.html https://jingyan.baidu.com/article/d8072ac49ebd23ec95cefddd.html 阅读全文
posted @ 2018-08-17 17:27 今夜太冷 阅读(667) 评论(0) 推荐(0) 编辑
解析XML出错,无法创建DOMDocument对象
摘要:【问题】 加载XML配置文件时,创建DOMDocument对象总是失败,创建代码如下: MSXML2::IXMLDOMDocumentPtr pXMLDoc; MSXML2::IXMLDOMElementPtr xmlRoot; //创建DOMDocument对象 HRESULT hr = pXMLDoc.CreateInstance(__uuidof(MSXML2::DO... 阅读全文
posted @ 2018-08-11 16:05 今夜太冷 阅读(2761) 评论(0) 推荐(0) 编辑
strncpy, strncpy_s
摘要:Defined in header <string.h> char *strncpy( char *dest, const char *src, size_t count ); char *strncpy( char *restrict dest, const char *restrict src, 阅读全文
posted @ 2018-08-08 11:06 今夜太冷 阅读(3687) 评论(0) 推荐(0) 编辑
Mongodb: Sort operation used more than the maximum 33554432 bytes of RAM
摘要:上线许久的产品突然爆出了一个Mongodb 查询的BUG,错误如下: 原因比较明确:Sort operation used more than the maximum 33554432 bytes of RAM.,33554432 bytes算下来正好是32Mb,而Mongodb的sort操作是把数 阅读全文
posted @ 2018-08-06 10:51 今夜太冷 阅读(781) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示