摘要: CLR 控制类型字段的结构: 友好程序集 当一个程序集被编译的时候,它可以通过定义在 System.Runtime.CompilerServices 命名空间的 InternalsVisibleTo 属性来标记友好的目标程序集。这个属性有一个字符串类型的参数来表示友好程序集的名称和公钥(传递的字符串 阅读全文
posted @ 2016-04-19 11:18 GrayGuo 阅读(161) 评论(0) 推荐(0) 编辑
摘要: 有时候我们想查看一个exe引用了哪些动态库,或者我们想看某个动态库包含哪些接口函数,这个时候可以使用dumpbin.exe工具: 1.输入Dumpbin -imports calldll.exe查看它的输入信息,可以看到它加载了***.dll2.输入dumpbin –exports dlltest. 阅读全文
posted @ 2016-04-17 22:05 GrayGuo 阅读(995) 评论(0) 推荐(0) 编辑
摘要: 1:保证编译后方法名不被修改: The: extern "C" { function declarations here in h file } will disable C++ name encoding. so c# will find the function 1: definition of 阅读全文
posted @ 2016-04-16 14:52 GrayGuo 阅读(221) 评论(0) 推荐(0) 编辑
摘要: 参考: http://www.cnblogs.com/liping13599168/archive/2011/03/31/2000320.html Platform Invoke Tutorial:https://msdn.microsoft.com/en-us/library/aa288468(V 阅读全文
posted @ 2016-04-15 23:27 GrayGuo 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 创建静态类库 Walkthrough: Creating and Using a Dynamic Link Library (C++) 1:菜单栏-->File, New, Project. 2: 选择 Win32 Console Application 3:在 Application Settin 阅读全文
posted @ 2016-04-15 22:38 GrayGuo 阅读(665) 评论(0) 推荐(0) 编辑
摘要: 参考:http://deanhume.com/home/blogpost/set-up-iis-7-to-run-a-secure-site-locally https/21 阅读全文
posted @ 2016-04-14 16:07 GrayGuo 阅读(1536) 评论(0) 推荐(0) 编辑
摘要: 在前一篇文章中我们构建了一个简单的日志系统,我们可以向多个接受者广播消息。 在这篇文章我,我们将要添加一些功能使得针对部分消息的接受成为可能,例如我们只对错误的消息进行磁盘记录,同时又可以把所有的消息打印到屏幕上。 绑定 在之前的案例中,我们已经创建了一个绑定,可以重新调用如下的代码: 绑定是交换机 阅读全文
posted @ 2016-04-11 11:10 GrayGuo 阅读(733) 评论(0) 推荐(3) 编辑
摘要: 1:服务器搭建 1.1:创建空的Web Application 1.2:引用NuGet.Server 包:NuGet.Server 安装完成后的界面 web.config 已经被重写了,里面存在一些配置。 1.3:部署该网站 2:安装包--NuGet Package Explorer GUI:htt 阅读全文
posted @ 2016-04-06 10:39 GrayGuo 阅读(172) 评论(0) 推荐(0) 编辑
摘要: 发布/订阅 在之前的案例中我们创建了一个工作队列,这个工作队列的实现思想就是一个把每一个任务平均分配给每一个执行者,在这个篇文章我们会做一些不一样的东西,把一个消息发送给多个消费者,这种模式就被称作"发布/订阅". 为了说明这个模式,我们将要创建一个简单的日志系统,一个负责发布消息,另外一个负责接收 阅读全文
posted @ 2016-04-06 10:14 GrayGuo 阅读(919) 评论(0) 推荐(3) 编辑
摘要: 官网:http://swagger.io/ 教程:http://www.wmpratt.com/swagger-and-asp-net-web-api-part-1/ 1:安装Dll: https://www.nuget.org/packages/Swashbuckle/ 2:配置Swagger 3 阅读全文
posted @ 2016-04-01 14:21 GrayGuo 阅读(530) 评论(0) 推荐(0) 编辑