摘要: GPG(GnuPG)入门 下载: https://gnupg.org/download/index.html 或者 http://www.hellopp.cn/page/5b9a1405c3f1f7d4116937ef [看Binary download 部分] Download Note that 阅读全文
posted @ 2018-09-18 15:08 今夜太冷 阅读(1667) 评论(0) 推荐(0) 编辑
摘要: From: https://forums.asp.net/t/2096848.aspx?Session+variables+lost+after+the+call+of+Response+Redirect+method [问题] Hi Everyone, In my asp.net applicat 阅读全文
posted @ 2018-09-14 16:56 今夜太冷 阅读(475) 评论(0) 推荐(0) 编辑
摘要: 对于一个array来说: For POD-types, a shallow copy or memcpy of the whole array is good enough, while for non-POD types, we need to perform element by element 阅读全文
posted @ 2018-09-11 17:29 今夜太冷 阅读(1996) 评论(0) 推荐(1) 编辑
摘要: 来自: <Learning Boost C++ Libraries> 第290页 阅读全文
posted @ 2018-09-10 11:50 今夜太冷 阅读(292) 评论(0) 推荐(0) 编辑
摘要: 9090down voteaccepted 9090down voteaccepted Find the index of the array element you want to remove, then remove that index with splice. The splice() m 阅读全文
posted @ 2018-09-06 15:11 今夜太冷 阅读(223) 评论(0) 推荐(0) 编辑
摘要: From: https://www.wentong.org/codex/question-2018081564702.html When using socket.IO in a Node.js server, is there an easy way to get the IP address o 阅读全文
posted @ 2018-09-06 15:09 今夜太冷 阅读(1330) 评论(0) 推荐(0) 编辑
摘要: From: https://www.cnblogs.com/CyLee/p/7216988.html 传送门: demo1: demo2: 阅读全文
posted @ 2018-09-05 17:06 今夜太冷 阅读(3541) 评论(0) 推荐(0) 编辑
摘要: https://stackoverflow.com/questions/9568150/what-is-a-c-delegate You have an incredible number of choices to achieve delegates in C++. Here are the on 阅读全文
posted @ 2018-09-03 14:33 今夜太冷 阅读(2007) 评论(0) 推荐(0) 编辑
摘要: https://blog.csdn.net/deep_kang/article/details/72722692: MFC更换图标,图像默认为MFC,主要步骤有三步。 第一步 找到一张图片(坑点:必须为ico文件,不能单纯的改名,否则会出错,我是通过网上在线将一张jpg图片转换成ico文件),放置到项目所在目录的res目录下(我的目录为F:\C++\MFCApplicati... 阅读全文
posted @ 2018-09-02 10:12 今夜太冷 阅读(2501) 评论(0) 推荐(0) 编辑
摘要: 用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 今夜太冷 阅读(536) 评论(0) 推荐(0) 编辑
摘要: [问题] 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 今夜太冷 阅读(263) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(1089) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(692) 评论(0) 推荐(0) 编辑
摘要: 原文地址: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 今夜太冷 阅读(1617) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(229) 评论(0) 推荐(0) 编辑
摘要: 我在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 今夜太冷 阅读(526) 评论(0) 推荐(0) 编辑
摘要: 说道wchar_t和char两个类型大家都不会陌生 wchar_t:在windows下是Unicode 16编码,也就是俗称宽字节 char:当然就是指一个字节,在windows下面默认是gbk编码的 所以在windows 下 wchar_t 转 char也就是编码转化 直接贴出wchar_t *字 阅读全文
posted @ 2018-08-18 19:35 今夜太冷 阅读(12758) 评论(0) 推荐(0) 编辑
摘要: https://jingyan.baidu.com/article/d8072ac49ebd23ec95cefddd.html https://jingyan.baidu.com/article/d8072ac49ebd23ec95cefddd.html 阅读全文
posted @ 2018-08-17 17:27 今夜太冷 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 【问题】 加载XML配置文件时,创建DOMDocument对象总是失败,创建代码如下: MSXML2::IXMLDOMDocumentPtr pXMLDoc; MSXML2::IXMLDOMElementPtr xmlRoot; //创建DOMDocument对象 HRESULT hr = pXMLDoc.CreateInstance(__uuidof(MSXML2::DO... 阅读全文
posted @ 2018-08-11 16:05 今夜太冷 阅读(2694) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(3599) 评论(0) 推荐(0) 编辑
摘要: 上线许久的产品突然爆出了一个Mongodb 查询的BUG,错误如下: 原因比较明确:Sort operation used more than the maximum 33554432 bytes of RAM.,33554432 bytes算下来正好是32Mb,而Mongodb的sort操作是把数 阅读全文
posted @ 2018-08-06 10:51 今夜太冷 阅读(768) 评论(0) 推荐(0) 编辑
摘要: From: https://www.npmjs.com/package/node-cache Simple and fast NodeJS internal caching. A simple caching module that has set, get and delete methods a 阅读全文
posted @ 2018-07-31 16:09 今夜太冷 阅读(4115) 评论(0) 推荐(0) 编辑
摘要: 来自: https://blog.csdn.net/huang_xw/article/details/8276123 函数声明: template<typename Range1T, typename Range2T> template<typename Range1T, typename Rang 阅读全文
posted @ 2018-07-26 10:39 今夜太冷 阅读(865) 评论(0) 推荐(0) 编辑
摘要: 如下的代码: #include <stdio.h> #include <string> #include <algorithm> #include <cassert> #include <cctype> #include <boost/algorithm/string.hpp> int main(i 阅读全文
posted @ 2018-07-24 13:57 今夜太冷 阅读(261) 评论(0) 推荐(0) 编辑
摘要: open和fopen_s用法的比较 fopen 和 fopen_s fopen用法: fp = fopen(filename,"w")。 fopen_s用法:,须定义另外一个变量errno_t err,然后err = fopen_s(&fp,filename,"w")。 返回值: fopen打开文件 阅读全文
posted @ 2018-07-20 15:56 今夜太冷 阅读(32370) 评论(0) 推荐(3) 编辑
摘要: 今天使用公司代码的日志模块记录程序运行的相关信息,发现日志总是只有两条记录,即程序启动和结束,别的都没有。跟踪了很久,终于发现是日志输出模块被我修改了一个地方:把fopen改成了fopen_s,毕竟报了warning。但是这也是问题的根源! 下面的说明来自于msdn: Files opened by 阅读全文
posted @ 2018-07-20 15:46 今夜太冷 阅读(1830) 评论(0) 推荐(2) 编辑
摘要: [问题] I have a collection called Document in MongoDB. Documents in this collection have a field called CreationDate stored in ISO date type. My task is 阅读全文
posted @ 2018-07-18 13:37 今夜太冷 阅读(296) 评论(0) 推荐(0) 编辑
摘要: [问题] 2down votefavorite I am trying to fetch data based on some match condition. First I've tried this: Here ending_date is full date format Offer.agg 阅读全文
posted @ 2018-07-18 13:35 今夜太冷 阅读(318) 评论(0) 推荐(0) 编辑
摘要: 来自: https://gist.github.com/okor/1536669 阅读全文
posted @ 2018-07-18 13:32 今夜太冷 阅读(260) 评论(0) 推荐(0) 编辑