上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 45 下一页

2015年8月25日

如何将含有byte数据项的结构存入MongoDb

摘要: 我们知道MongoDb不支持byte(BsonType中根本没有定义byte), 但是在实际生产环境中数据结构(特别是远古时代的数据结构)往往包含byte数据项。 这时候无法保存原有的数据结构,一般会另外创建一个Wrapper结构(Wrapper内部将byte转为int等Mongo... 阅读全文

posted @ 2015-08-25 19:53 norsd 阅读(774) 评论(0) 推荐(0)

2015年8月22日

如何使Label有修改功能

摘要: 如何使Label有修改功能之前制作一个项目时需要这样一个功能: 双击Label, 随后Label变为TextBox,用户修改后回车,TextBox变回Label 之前使用WPF做了一个,代码如下: #region Column Header Template ... 阅读全文

posted @ 2015-08-22 14:14 norsd 阅读(450) 评论(0) 推荐(0)

2015年8月14日

如何快速将vc++的类转换为c#/cli

摘要: 所有需要的工具: 1. TextTemplate 2. P/Invoke Interop Assistant 3. DotNetResolvervc++的native类一般是无法直接暴露在.net环境下用的(这里暴露的意思是其他.net可以调用) 所以我们其实总是要做一个stub... 阅读全文

posted @ 2015-08-14 01:28 norsd 阅读(632) 评论(0) 推荐(0)

2015年8月13日

c# 中的 protected internal 如何在 vc.net 中实现

摘要: c# 中有 protected internal 的复合访问属性,保证assembly内部访问,以及外部的派生类访问vc.net 中无法直接写上 protected internal, 其对应的写法为: public protected:在c#中观察编译后的vc.net的类将看到 ... 阅读全文

posted @ 2015-08-13 10:25 norsd 阅读(136) 评论(0) 推荐(0)

2015年7月18日

Visual Studio 调试卡顿的解决方法

摘要: 将不用的断点删除关闭调试时打开的“IntelliXXX的窗口”上面的第2条测试有效!https://social.msdn.microsoft.com/Forums/zh-CN/944b34d7-4bb0-4b26-9015-ec45ea65fdf5/vs2013?forum=vi... 阅读全文

posted @ 2015-07-18 18:53 norsd 阅读(1483) 评论(0) 推荐(0)

2015年5月20日

Type中的3个bool属性: IsGenericType , IsGenericTypeDefinition , IsGenericParameter

摘要: 首先说下 IsGenericType 用3个实例说明: typeof(DateTime).IsGenericType : false typeof(List).IsGenericType: true typeof(Dictionary).IsGenericType:tr... 阅读全文

posted @ 2015-05-20 14:59 norsd 阅读(595) 评论(0) 推荐(0)

2015年5月11日

如何在内网打洞使得能暴露mstsc端口

摘要: 说明: 1.目标机器Target,有全部控制权,其所处网络无法向外网暴露端口,但是已知Target的外网地址:Target_internet_addr 2.交换机器Exchange,有全部控制权,其所处网络有一个对外暴露的端口实现: Target端制作一个不断重连Exchange的... 阅读全文

posted @ 2015-05-11 17:45 norsd 阅读(291) 评论(0) 推荐(0)

2015年4月19日

MongoDb 抛出"Error retrieving nonce"异常

摘要: MongoDb在读取一个数据时抛出此异常, google之后也是只有源码没有任何相关结果, 考虑到之前同样的Db下不同的Collection没有发现此问题, 对比之后发现出错的url为: mongodb://user:pass@1.2.3.4:port/DbName/此url作为 ... 阅读全文

posted @ 2015-04-19 01:02 norsd 阅读(170) 评论(0) 推荐(0)

2015年4月8日

c# UserControl 如何在父窗口中显示Scroll

摘要: 1. UserControl 不应该是Dock = Fill, 而应该使用 Anchor 2. 父窗口(或者父控件,或者容器)的AutoScroll = True 3.UserControl 加入容器后, 如果容器的大小不足以支撑UserControl的Width,Height,则会自动... 阅读全文

posted @ 2015-04-08 21:08 norsd 阅读(810) 评论(0) 推荐(0)

2015年3月29日

mysql 5.6 安装x64版本

摘要: 从mysql下载的 32bit的 msi installer 后 , 安装的时候没有发现选择x64的地方, 最后安装完毕后发现server是32bit的,只能删除server( installer 安装的其他组件都没去动,例如 work bench, connector ). 然后... 阅读全文

posted @ 2015-03-29 17:10 norsd 阅读(455) 评论(0) 推荐(0)

上一页 1 ··· 12 13 14 15 16 17 18 19 20 ··· 45 下一页

导航