上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页
摘要: OleView.exe可以查看机器上安装的所有COM组件的类别以及各个类别下的COM组件。 阅读全文
posted @ 2016-07-06 16:07 今夜太冷 阅读(1929) 评论(0) 推荐(0) 编辑
摘要: 编写COM组件的时候需要导出GUID,以下是代码示例。 extern "C" const GUID CLSID_Dictionary = { 0x54bf6567, 0x1007, 0x11d1, { 0xb0, 0xaa, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00} } ; 这种格式的GUID可以... 阅读全文
posted @ 2016-07-06 15:22 今夜太冷 阅读(477) 评论(0) 推荐(0) 编辑
摘要: 进程外组件以及进程间通信方式的描述。 阅读全文
posted @ 2016-07-06 14:50 今夜太冷 阅读(389) 评论(0) 推荐(0) 编辑
摘要: /* wcscat example */ #include int main () { wchar_t wcs[80]; wcscpy (wcs,L"these "); //这句很重要,否则wcs会是乱码。 wcscat (wcs,L"wide strings "); wcscat (wcs,L"are ");... 阅读全文
posted @ 2016-07-06 11:21 今夜太冷 阅读(1342) 评论(0) 推荐(0) 编辑
摘要: If you want to convert fromstd::wstringtoconst WCHAR*(i.e. the returned pointer givesread-only accessto the string content), then callingstd::wstring::c_str()method is just fine: std::wstrin... 阅读全文
posted @ 2016-07-05 14:44 今夜太冷 阅读(2208) 评论(0) 推荐(0) 编辑
摘要: BSTR A BSTR (Basic string or binary string) is a string data type that is used by COM, Automation, and Interop functions. Use the BSTR data type in all interfaces that will be accessed from script. C+... 阅读全文
posted @ 2016-07-05 11:58 今夜太冷 阅读(907) 评论(0) 推荐(0) 编辑
摘要: 使用GetProcAddressFunction时,有以下几点需要特别留意: 1. 第二个参数类型是LPCSTR,不是; 2. 用__declspec(dllexport),按C名称修饰(extern "C") 导出的函数名,对于__stdcall和__fastcall调用约定是相同的;对__cdecl是不同的(导出的函数名没有前面的下划线);... 阅读全文
posted @ 2016-07-05 11:29 今夜太冷 阅读(14034) 评论(0) 推荐(0) 编辑
摘要: Here's what I've found (ignoring the old non-generic collections): Array- C array, though the .NET Arraycanhave a non-zero starting index. List-std::vector Dictionary-unordered_map ... 阅读全文
posted @ 2016-07-03 21:31 今夜太冷 阅读(394) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(337) 评论(0) 推荐(0) 编辑
摘要: GetLastError()获取到的错误代码,可以通过VS2013自带的Error Lookup工具来查询错误的描述。 阅读全文
posted @ 2016-06-28 16:52 今夜太冷 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(325) 评论(0) 推荐(0) 编辑
摘要: 为已有的几个项目添加了一个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 今夜太冷 阅读(3318) 评论(0) 推荐(0) 编辑
摘要: 可以用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 今夜太冷 阅读(5012) 评论(0) 推荐(0) 编辑
摘要: cmdkey https://technet.microsoft.com/en-us/library/cc754243.aspx 阅读全文
posted @ 2016-06-23 15:32 今夜太冷 阅读(937) 评论(0) 推荐(0) 编辑
摘要: 已经添加了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 今夜太冷 阅读(7676) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(428) 评论(0) 推荐(0) 编辑
摘要: Web.config中加了system.diagnostics节点后就不能访问了,怎么回事? [解决方法] 不要把system.diagnostics节点作为web.config的第一个节点。 阅读全文
posted @ 2016-06-15 11:08 今夜太冷 阅读(447) 评论(0) 推荐(0) 编辑
摘要: 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 今夜太冷 阅读(422) 评论(0) 推荐(0) 编辑
摘要: Note.js,用stream读取文件的内容,注意decoder的用法 const fs = require('fs'); var rr = fs.createReadStream('data\\foo.txt'); // Pull off a header delimited by \n\n // use unshift() if we get too much // Call th... 阅读全文
posted @ 2016-05-31 17:23 今夜太冷 阅读(678) 评论(0) 推荐(0) 编辑
摘要: Convert CString to ANSI string in UNICODE projects Quick Answer: use an intermediate CStringA. Normally, this is not something that should be done. *It is technically unreliable, unless you can guar... 阅读全文
posted @ 2016-05-27 14:15 今夜太冷 阅读(859) 评论(0) 推荐(0) 编辑
摘要: 假如有一个名为articles的集合,数据如下: { "_id" : 1, "title" : "cakes and ale" } { "_id" : 2, "title" : ... 阅读全文
posted @ 2016-05-27 11:35 今夜太冷 阅读(236) 评论(0) 推荐(0) 编辑
摘要: 需要openssl的支持, openssl本身不提供windows的安装程序,可以按照如下的步骤进行安装: (参考https://conetrix.com/Blog/how-to-install-openssl-on-windows-7,并复制到下面) How-to Install OpenSSL on Windows 7 Download and runthe Cygwin install... 阅读全文
posted @ 2016-05-24 13:52 今夜太冷 阅读(7061) 评论(0) 推荐(0) 编辑
摘要: Configure SSL for SharePoint 2013 In this tutorial I will show you how to configure SSL for SharePoint 2013. Prerequisites: IIS 8 SharePoint 2013 Windows Server 2012 HTTP... 阅读全文
posted @ 2016-05-18 16:31 今夜太冷 阅读(2015) 评论(0) 推荐(0) 编辑
摘要: SharePoint 2013网站突然不能登录了,访问的时候,总是报错: The list has not shared with you. 原因: 原来我不知道什么时候把web application的Default authentication provider中的验证方式从NTLM改成 Kerboes了。 【解决方法】 改回NTLM就可以了。 需要注意的是,... 阅读全文
posted @ 2016-05-18 10:34 今夜太冷 阅读(567) 评论(0) 推荐(0) 编辑
摘要: 在新建项目的时候,如果选择了MFC并且使用ATL,那么在程序中使用CString是没有问题的。 但是如果当初没有选,后面再改,虽然选上了,但是CString在编译的时候还是不被编译器识别。怎么办那? 解决方案: http://blog.csdn.net/xiashengfu/article/details/7911086 同时也复制到这里一份: -------------------------... 阅读全文
posted @ 2016-05-13 21:17 今夜太冷 阅读(3678) 评论(0) 推荐(0) 编辑
摘要: db.table.find().forEach(function (doc) { var oldValue = doc.Column1; var newValue = [sa[1],sa[0],sa[2]]; db.table.update({_id: doc._id}, { $set: { Column1: newValue } }); }) 阅读全文
posted @ 2016-05-13 16:08 今夜太冷 阅读(1492) 评论(0) 推荐(0) 编辑
摘要: 用VS2008建立一个DLL项目,一开始的时候不想用MFC, 所以选择的是使用标准Windows库。 使用了一段时间后又想用MFC了,所以把选项改成使用在共享 DLL 中使用 MFC。 但是编译的时候报错: fatal error C1189: #error : WINDOWS.H already included. MFC apps must not #include 看看那么多的... 阅读全文
posted @ 2016-04-26 21:06 今夜太冷 阅读(3568) 评论(0) 推荐(0) 编辑
摘要: 最近翻阅了node v0.10.4的buffer类的源代码,收获不少,也很久没有在cnode上发表文章了,想把一些收获分享给大家,有什么错误的地方希望大牛们指正啊。 前阵子有位rrestjs框架的使用者YanQ报告给我这样一个错误,跟我说在用户post很多内容的文章时会crash进程然后报如下错误:(热心的老雷帮我解决了问题) buffer.js:523 thr... 阅读全文
posted @ 2016-04-13 09:50 今夜太冷 阅读(1691) 评论(0) 推荐(0) 编辑
摘要: console.time("timer名字") 其他脚本 console.timeEnd("timer名字"); 运行后结果为: timer名字: 运行时间 console.time("timer名字") 其他脚本 console.timeEnd("timer名字"); 运行后结果为: timer名 阅读全文
posted @ 2016-04-12 14:17 今夜太冷 阅读(417) 评论(0) 推荐(0) 编辑
摘要: 在第一篇的基础上,进行如下的步骤,就可以编译出X64的驱动程序。 (建议再另外建一个项目,这样避免混淆,因为x86和x64编译的有些编译选项是不同的。) 1. 安装VS2008 x64 build 组件。如果之前没有安装,可以按照如下的步骤进行安装: Control Panel -> Uninsta 阅读全文
posted @ 2016-04-04 22:19 今夜太冷 阅读(1173) 评论(0) 推荐(0) 编辑
上一页 1 ··· 8 9 10 11 12 13 14 15 16 ··· 19 下一页