I'm making a class library and I dont want other people be able to use my dll file. I'm just using this dll along with one of my apps. Any way to prevent people who have my app from using my dll files?
Printable View
I'm making a class library and I dont want other people be able to use my dll file. I'm just using this dll along with one of my apps. Any way to prevent people who have my app from using my dll files?
Basically make heavy use of the following keywords while declaring Classes or variables
Frenzied :eek: sorry I mean :
- 1-Private (easy to use :p)
2-Protected (from within their own Classes or derived Classes)
3-Friend (only within the whole program.If not set , it's default , this is what you have to use )
4-Protected Friend (accumulation of both modifiers )
5-NotInheritable (prevent inheriting the Class)
I can't seem to find other important techniques to protect your DLL .
Hope this helps .......Pirate:)
well if I declare something as protected or friend, then I cant use it in other projects, ahem :DQuote:
Originally posted by pirate
Basically make heavy use of the following keywords while declaring Classes or variables
Frenzied :eek: sorry I mean :
- 1-Private (easy to use :p)
2-Protected (from within their own Classes or derived Classes)
3-Friend (only within the whole program.If not set , it's default , this is what you have to use )
4-Protected Friend (accumulation of both modifiers )
5-NotInheritable (prevent inheriting the Class)
I can't seem to find other important techniques to protect your DLL .
Hope this helps .......Pirate:)
umm yeah declaring stuff as noninheritable is good. But shouldnt there be a way to totaly disable others from using my dll files?!!!:mad:
such as ..........???;)
honestly if I knew it, I wouldn't ask it, ahem :DQuote:
Originally posted by pirate
such as ..........???;)
I'm sure you have something in mind even stupid thoughts may work sometimes .But as I said those are the only things you can use (I think :D )
well, you could somehow do this with usercontrols in vb6, I dont know....Quote:
Originally posted by pirate
I'm sure you have something in mind even stupid thoughts may work sometimes .But as I said those are the only things you can use (I think :D )
I just remember when I was adding some stuff,vb would give me an error saying something like I dont have a license for that control or whatever...
so I'm gussing that there should be a way to do it with dll files too (I'm hoping!)
license issue ,I guess this error happen when you use a dll or activex without registering themQuote:
Originally posted by MrPolite
well, you could somehow do this with usercontrols in vb6, I dont know....
I just remember when I was adding some stuff,vb would give me an error saying something like I dont have a license for that control or whatever...
so I'm gussing that there should be a way to do it with dll files too (I'm hoping!)
Check out the article in the help entitled 'Licensing Components and Controls' or just do a search in the help for 'licensing'. I've seen other examples on the net but can't seems to find them right now.
Here are some other links that might help (I found a couple)
http://www.xheo.com/Products/Licensi...section=Adding
http://discuss.develop.com/archives/...nsing&f=&a=&b=
thanks alot Edneeis:) I'll come back to this when I'm gunno make a final version of my dll:)
Can't access modifiers do this kind of protection ??
what are modifiers:DQuote:
Originally posted by pirate
Can't access modifiers do this kind of protection ??
^Quote:
Originally posted by pirate
Basically make heavy use of the following keywords while declaring Classes or variables
Frenzied :eek: sorry I mean :
- 1-Private (easy to use :p)
2-Protected (from within their own Classes or derived Classes)
3-Friend (only within the whole program.If not set , it's default , this is what you have to use )
4-Protected Friend (accumulation of both modifiers )
5-NotInheritable (prevent inheriting the Class)
I can't seem to find other important techniques to protect your DLL .
Hope this helps .......Pirate:)
:
:
:
UP:D
oh oops:DQuote:
Originally posted by pirate
^
:
:
:
UP:D
no you cant do this with modifiers
are you sure (only one...):D :D
while playing with classes I got this , it prevent others from creating new instances from Test Class.Private Constructor did it actually not me:D
VB Code:
Public Class test Private Sub New() MsgBox("OOOP YOU GOT ME") End Sub End Class
then you';re gunno get the same error when you use it in your own program too!!:eek:Quote:
Originally posted by pirate
while playing with classes I got this , it prevent others from creating new instances from Test Class.Private Constructor did it actually not me:D
VB Code:
Public Class test Private Sub New() MsgBox("OOOP YOU GOT ME") End Sub End Class
also, I have some classes that have SHARED members and dnot need to be declared at all.
I found another link for ya:
http://www.vbcity.com/forums/topic.asp?tid=18858
Go to:
http://msdn.microsoft.com/library/de...entication.asp
and read about Code Access Security and Evidence.