Results 1 to 6 of 6

Thread: dependency file

  1. #1

    Thread Starter
    Fanatic Member vishalmarya's Avatar
    Join Date
    Feb 2001
    Location
    New Delhi , INDIA
    Posts
    858

    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

  2. #2
    mcsd2002
    Guest
    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.

  3. #3
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    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:
    1. 'inside the classes
    2. Private m_Authenticated as boolean
    3.  
    4. Public Sub Authenticate(AuthCode as string)
    5.    If AuthCode="IBetYouWontFigureThisOut" then m_Authenticated=True
    6. End Sub
    7.  
    8. 'then add a check for this variable in any other methods or properties
    9. Public Property Let Name(Newvalue as string)
    10.     If m_Authenticated=False then
    11.         Err.Raise 1,,"You silly billy you didn't authenticate!"
    12.         Exit Property
    13.     End If
    14.     'normal stuff here
    15. End Property

    It's far from the best but it'll do if you are in a pinch.

  4. #4
    Fanatic Member Slaine's Avatar
    Join Date
    Jul 2002
    Posts
    641
    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)

  5. #5
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339

    Re: dependency file

    Originally posted by vishalmarya
    an activex dll ...( my activex dll)
    Slaine, He means for a DLL not a control.

  6. #6
    Fanatic Member Slaine's Avatar
    Join Date
    Jul 2002
    Posts
    641
    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
  •  



Click Here to Expand Forum to Full Width