- 博客(4)
- 收藏
- 关注
转载 c++ 接口对象参数传递设计
设计一个接口时, 如需传递一个对象,然后保存起来。 让它即能接受左值, 又能接受右值 写两个重载 explicit A(string&& a) : _a(move(a)) {} explicit A(const string& a) : _a(a) {} 上面的一次move construct, 下面的一次copy construc...
2017-05-11 11:53:00
484
转载 .Net 打包及释放第三方程序
把第三方程序打包在assembly里, 运行时释放并调用, 两种方法 使用resx文件 创建一个resx文件,如MyResources.resx. 把想要添加的exe, dll啥的放进去, 右击Run Custom Tool, vs自动生成MyResources.Designer.cs. 添加代码释放 var mgr = new ResourceManager(t...
2017-04-20 13:29:00
284
转载 .NET bypass strong-name validation, 绕过强名称验证。
可使用.net framework sdk自带工具 sn.exe, 可能在windows sdk目录的NETFX 4.0 Tools下.爆破.net程序时可用。 使用参数 -Vr <assembly> [<userlist>][<infile>] Register <assembly> for verification skip...
2017-04-01 08:25:00
610
转载 C++ 遍历可变模板参数 iterate variadic template arguments
1 template<size_t I = 0, typename FuncT, typename ...Tp> 2 inline typename std::enable_if_t<I == sizeof ...(Tp)> for_each(std::tuple<Tp ...>&, FuncT) 3 { 4 } 5 ...
2017-03-31 10:51:00
1070
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人
RSS订阅