摘要:
功能介绍: 根据CPU+磁盘标号来注册软件,可扩展成一个软件只能在一台电脑上授权使用简要: 开发环境为Visual Studio 2013 所有方法封装在SoftReg.cs类中 效果图: using System; using System.Management; namespace SoftRe 阅读全文
摘要:
一、C#封装成DLL 1、在VS中创建项目选择类库,命名 myDll 2、建立好项目后自动生成的代码如下: 代码修改如下,添加自己要封装的C#代码,注意修饰符必须为public using System; using System.Collections.Generic; using System. 阅读全文
摘要:
//数据处理 result = ""; foreach (int i in ResultV)//数字转字符串 { char x = (char)i; result += x; } result = result.Replace("\0", ""); result = result.Trim();// 阅读全文