sprintf将CString转换成char[]
摘要:在MFC中使用sprintf()函数将CString转换成char[]时,char[]只接受第一个字符使用的是VS2008CStringname;dbName="test";charcname[100];sprintf(cname,"%s",name);执行完这个后cname只保存第一个字符,也就是t,郁闷... [解决方法] CString是unicode编码用%S试试
阅读全文
posted @
2018-04-21 17:22
今夜太冷
阅读(506)
推荐(0) 编辑
Windows 10磁盘占用100%解决办法
摘要:使用Windows 10 的朋友可能会遇到这样的情况,开机后没开什么程序,磁盘占用却非常高,硬盘转个不停,这是怎么回事,又该如何解决呢? 看了网上的这两票文章 https://jingyan.baidu.com/article/4b52d702ab67b2fc5c774bfd.html https:
阅读全文
posted @
2018-04-20 09:46
今夜太冷
阅读(2199)
推荐(0) 编辑
C++中的extern
摘要:这篇文章解释的简单明了: https://stackoverflow.com/questions/10422034/when-to-use-extern-in-c This comes in useful when you have global variables. You declare the
阅读全文
posted @
2018-04-18 16:18
今夜太冷
阅读(250)
推荐(0) 编辑
Sharepoint claim认证的login name
摘要:当SharePoint网站开启了Claims认证后,取回来的user的loginname是一个奇怪的字符串,这个到底是什么意思那? 这篇文章详细解释了: https://blogs.msdn.microsoft.com/svarukala/2014/03/26/saml-claims-user-id
阅读全文
posted @
2018-04-18 14:44
今夜太冷
阅读(265)
推荐(0) 编辑
SharePoint 2010/2013: List view Lookup threshold uncovered
摘要:SharePoint with Large lists is common scenario in any Sharepoint deployment. While there are Several blogs / Guidance TechNet articles which exist wor
阅读全文
posted @
2018-04-12 10:31
今夜太冷
阅读(214)
推荐(0) 编辑
VS2013第一个应用boost的程序
摘要:https://sourceforge.net/projects/boost/files/boost-binaries/1.67.0_b1/ 由于我用的是Windows10下的VS2013,所以下载的是这个: 下载后安装,会要求指定一个目录解压,用默认的local目录即可。 安装完成后,目录结构如下
阅读全文
posted @
2018-04-08 11:19
今夜太冷
阅读(404)
推荐(0) 编辑
error MSB6006: "CL.exe" exited with code -1073741819.
摘要:编译一个c++项目的时候,会报如下的错误,总是无法编译,是怎么回事? error MSB6006: "CL.exe" exited with code -1073741819. 搜了一些网上的解决方案都不好用。 【解决方法】 选择一个cpp文件,右击properties, 然后看了一遍它的设置,没做
阅读全文
posted @
2018-04-08 10:46
今夜太冷
阅读(3736)
推荐(0) 编辑
Simple XOR Encryption/Decryption in C++ (And Several Other Languages)
摘要:For details on how to implement XOR encryption using Go, see this post. If you are looking for XOR encryption for other languages, including C, C#, Da
阅读全文
posted @
2018-04-06 20:35
今夜太冷
阅读(257)
推荐(0) 编辑
VS2013创建Node.js C++ Addons的过程
摘要:首先看我的Node.js版本。 node –v v6.11.4 node –v v6.11.4 然后参照这篇文章来做: https://nodejs.org/api/addons.html#addons_hello_world npm install -g node-gyp npm install
阅读全文
posted @
2018-04-05 18:29
今夜太冷
阅读(398)
推荐(0) 编辑
Setting a maximum attachment size
摘要:By default IBM® Lotus® iNotes™ allows a maximum attachment size of 50,000K (50MB). You can increase this amount by setting the "Maximum attachment siz
阅读全文
posted @
2018-04-03 17:03
今夜太冷
阅读(267)
推荐(0) 编辑
一机多屏,屏幕顺序容易错?
摘要:1,一个主机,四个显示屏。 2,独立显卡+集成显卡。 四个输出口。 3,主显示1,其余为扩展显示。 问题: 经常出现,独立显卡上,两个屏序颠倒的问题。 【解决方法】 win10系统 桌面右键 显示设置 拉到下面 高级显示设置 然后识别出来的显示器的顺序 是可以直接拖动来改变顺序的!直接拖动!拖动!动
阅读全文
posted @
2018-04-03 16:54
今夜太冷
阅读(2380)
推荐(0) 编辑