|
-
Apr 30th, 2002, 12:57 PM
#1
Thread Starter
Fanatic Member
dependency file
what is a dep file.
an activex dll is distributed with my application.
is there any way to restrict others to use that component
( my activex dll) in their own applications
is dep file of some help ?
Thanks
-
Apr 30th, 2002, 01:10 PM
#2
The dependancy file is used by VB Package and deployment utility to tell it what other components an ActiveX dll, exe or whatever needs to function properly. It has nothing to do with security or access to a component so it couldn't be used for that purpose.
-
Apr 30th, 2002, 01:40 PM
#3
I am sure there are lots of ways to 'lock' a dll, if you were using an ActiveX control then you could do it through the license key. One simple way is to make the classes in your dll only work after a password of some kind has been passed in. Then since you know the password you can pass it in when it is used by your apps where as they wont know it and thus wont be able to use the dll.
VB Code:
'inside the classes
Private m_Authenticated as boolean
Public Sub Authenticate(AuthCode as string)
If AuthCode="IBetYouWontFigureThisOut" then m_Authenticated=True
End Sub
'then add a check for this variable in any other methods or properties
Public Property Let Name(Newvalue as string)
If m_Authenticated=False then
Err.Raise 1,,"You silly billy you didn't authenticate!"
Exit Property
End If
'normal stuff here
End Property
It's far from the best but it'll do if you are in a pinch.
-
May 1st, 2002, 03:20 AM
#4
Fanatic Member
You need to add licensing support to your control project
On the Project menu, click <MyProject> Properties to open the Project Properties dialog box. Select the General tab, check Require License Key, then click OK.
When you make the .ocx file, Visual Basic will create a .vbl file containing the registry key for licensing your control component. When you use the Package and Deployment wizard to create a setup for your .ocx, the .vbl file is automatically included in the setup procedure.
If you don't want an end user to use your control in the development environment then you don't distribute the vbl file.
Martin J Wallace (Slaine)
-
May 1st, 2002, 04:00 AM
#5
Re: dependency file
Originally posted by vishalmarya
an activex dll ...( my activex dll)
Slaine, He means for a DLL not a control.
-
May 1st, 2002, 04:53 AM
#6
Fanatic Member
In that case completely ignore everything I said
Martin J Wallace (Slaine)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|