Click here to Skip to main content
16,021,041 members
Please Sign up or sign in to vote.
1.00/5 (3 votes)
See more:
Hi,
can i create own hardwareID.dll ? i want use this hardwareID.dll in my project?
Posted
Comments
Sandeep Mewara 25-May-11 5:19am    
Aye?
Manfred Rudolf Bihy 25-May-11 5:20am    
If you'd tell us what this DLL is supposed to accomplish we could try to help you. Without any information at all it's impossible to do so.

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
 
Share this answer
 
Comments
OriginalGriff 25-May-11 5:33am    
Yep: I'll handle the "how-to", you handle the "what-do". :laugh: 5!
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.
 
Share this answer
 
Comments
Manfred Rudolf Bihy 25-May-11 5:28am    
Nice complementary solution to mine! 5+

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900