Jump to content
Xtreme .Net Talk

Recommended Posts

Posted

How can I secure my application component (DLL) so that other application cannot use that component? My application is only a WinForms and the component is not remote.

 

Thanks!

Posted

Maybe you could make a property in your DLL that is called : RegisterKey.^

 

And before using it... you'll have to set it. And if you don't set it... you make ALL your things don't work. How about that ?

"If someone say : "Die mortal !"... don't stay to see if he isn't." - Unknown

"Learning to program is like going out with a new girl friend. There's always something that wasn't mentioned in the documentation..." - Me

"A drunk girl is like an animal... it scream at everything like a cat and roll in the grass like a dog." - Me after seeing my girlfriend drunk and some of her drunk friend.

C# TO VB TRANSLATOR

Posted
Read up on System.ComponentModel.LicenseProvider. You still have to implement your own licensing scheme though but at least you have a framework to begin with.
Posted
How can I secure my application component (DLL) so that other application cannot use that component? My application is only a WinForms and the component is not remote.

 

Thanks!

 

Just make all your classes internal (friend in vb).

  • Administrators
Posted

A strong name in itself wouldn't help in this case, a strong name would allow you to install your component in the GAC and protect against obvious atempts to replace your DLL with a 3rd party one.

In this case JABE's suggestion is worth investigating further as it really is the most appropriate solution.

Posting Guidelines FAQ Post Formatting

 

Intellectuals solve problems; geniuses prevent them.

-- Albert Einstein

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...