auxcom Posted June 3, 2004 Posted June 3, 2004 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! Quote
Arch4ngel Posted June 3, 2004 Posted June 3, 2004 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 ? Quote "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
JABE Posted June 4, 2004 Posted June 4, 2004 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. Quote
auxcom Posted June 4, 2004 Author Posted June 4, 2004 I heard about strong-name components, is this will help also? Quote
Jaco Posted June 5, 2004 Posted June 5, 2004 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). Quote
Administrators PlausiblyDamp Posted June 5, 2004 Administrators Posted June 5, 2004 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. Quote Posting Guidelines FAQ Post Formatting Intellectuals solve problems; geniuses prevent them. -- Albert Einstein
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.