COM的一些基本概念
摘要:Windows lets you share code at the binary level using DLLs. After all, that's how Windows apps function - reusing kernel32.dll, user32.dll, etc. But since the DLLs are written to a C interface, they...
阅读全文
posted @
2016-06-28 17:13
今夜太冷
阅读(377)
推荐(0) 编辑
Error Lookup工具
摘要:GetLastError()获取到的错误代码,可以通过VS2013自带的Error Lookup工具来查询错误的描述。
阅读全文
posted @
2016-06-28 16:52
今夜太冷
阅读(667)
推荐(0) 编辑
关于COM的Unicode string的精彩论述
摘要:I need to make a detour for a few moments, and discuss how to handle strings in COM code. If you are familiar with how Unicode and ANSI strings work, and know how to convert between the two, then you ...
阅读全文
posted @
2016-06-28 14:50
今夜太冷
阅读(328)
推荐(0) 编辑
Nuget添加新项目的问题
摘要:为已有的几个项目添加了一个nuget package后,在解决方法中添加了一个新项目,然后想把这个nuget package添加到这个新建的项目中去,可以此时无法添加。 怎么办那? 【解决方法】 There's 3 approaches :).In NuGet 1.1 (The latest release) we've improved powershell pipelinin...
阅读全文
posted @
2016-06-27 13:51
今夜太冷
阅读(3330)
推荐(0) 编辑
const char * 转换为char*
摘要:可以用const_cast const char* aa = "this is a const string."; char* bb = const_cast(aa); return 0; 更多const_cast的用法如下: http://en.cppreference.com/w/cpp/language/const_cast
阅读全文
posted @
2016-06-24 14:06
今夜太冷
阅读(5049)
推荐(0) 编辑
如何用命令行管理windows记住的用户名和密码
摘要:cmdkey https://technet.microsoft.com/en-us/library/cc754243.aspx
阅读全文
posted @
2016-06-23 15:32
今夜太冷
阅读(940)
推荐(0) 编辑
System.Net.Http.Formatting的nuget版本冲突问题
摘要:已经添加了nuget Microsoft.AspNet.WebApi.Client 调用System.Net.Http.HttpClient.PostAsJsonAsync的时候报如下的错误: Could not load file or assembly 'System.Net.Http.Formatting, Version=5.2.3.0, Culture=neutral, Pub...
阅读全文
posted @
2016-06-17 17:40
今夜太冷
阅读(7745)
推荐(0) 编辑
Nuget出现错误怎么办?
摘要:Go to the packages folder in the Windows Explorer and delete it. Open Visual Studio and Go toTools>Library Package Manager>Package Manager Settingsand under the Package Manager item on the le...
阅读全文
posted @
2016-06-16 16:42
今夜太冷
阅读(439)
推荐(0) 编辑
Web.config中加了system.diagnostics节点后就不能访问了
摘要:Web.config中加了system.diagnostics节点后就不能访问了,怎么回事? [解决方法] 不要把system.diagnostics节点作为web.config的第一个节点。
阅读全文
posted @
2016-06-15 11:08
今夜太冷
阅读(454)
推荐(0) 编辑
如何解决SPD的缓存问题
摘要:SPD有时候文件被缓存住了,表现为文件的最后更改时间不对,或者本来文件已经被check in了,但是显示check out状态,而此时如果选择check in, 就会提示文件没有被check out. 解决方法: Clear cache: Close SPD2013. Delete everything at %USERPROFILE%\AppData\Local\Microsoft...
阅读全文
posted @
2016-06-13 10:57
今夜太冷
阅读(430)
推荐(0) 编辑