我可以创建hardwareID.dll吗? [英] Can i create hardwareID.dll?

查看:106
本文介绍了我可以创建hardwareID.dll吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我可以创建自己的hardwareID.dll吗?我想在我的项目中使用这个hardwareID.dll吗?

Hi,
can i create own hardwareID.dll ? i want use this hardwareID.dll in my project?

推荐答案

因为我只能猜测你在开车什么,所以我会指出一个演示如何计算或多或少唯一的标识符.剩下要做的就是创建一个库项目,然后在此站点中找到可以在其中找到的功能: C#生成唯一硬件ID [ ^ ].
在上述站点上,您还将找到一些源代码下载.那应该可以帮助您收集一些想法.

祝您编程愉快!

-MRB
Since I can only guess what you''re driving at I''ll point you to a source that demonstrates how to calculate an identifier that is more or less unique. All that is left for you to do is create a library project and put the functionality inside which you find on this site here: C# Generate Unique Hardware ID[^].
On the above mentioned site you''ll also find some source code to download. That should help you gather some ideas.

Happy coding!

-MRB


是的,您应该可以.

在VS中,在解决方案资源管理器中右键单击您的解决方案,然后选择添加..新项目"

在出现的对话框中,选择类库"

给它取一个合理的名称:"HardwareID",然后按OK.

在其他要使用它的项目中:右键单击引用",然后选择添加引用".

在出现的对话框中,选择项目"选项卡,然后突出显示"HardwareID".按确定. (您可能还希望在代码文件中添加"using"语句)

现在,HardwareID DLL中的所有公共类,方法等都可用.
Yes, you should be able to.

In VS, right click your solution in the Solution Explorer, and select "Add..New Project"

In the dialog which comes up, select "Class Library"

Give it a sensible name: "HardwareID" and press OK.

In your other projects that you wish to use it: right click on References and select "Add Reference".

In the dialog that comes up, select the "Project" tab and highlight "HardwareID". Press OK. (You may also want to add a "using" statement in your code files)

Now all the public classes, methods, and so forth in the HardwareID DLL are available.


这篇关于我可以创建hardwareID.dll吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆