Results 1 to 7 of 7

Thread: protecting vba

  1. #1
    Member
    Join Date
    2004-06
    Posts
    42
    Login to Give a bone
    0

    Default protecting vba

    i have a vba running in autocad, that calls some dll's in vb6
    is there any way of protect the macro for comercial purposes?
    can i insert a request code/licensed code dialogue in vba?

  2. #2
    Revit Mararishi aaronrumple's Avatar
    Join Date
    2002-02
    Location
    St. Louis, MO
    Posts
    4,695
    Login to Give a bone
    0

    Default Re: protecting vba

    Add a password. However, the password isn't that hard to crack, but should deter most.
    Don't drink the Kool-Aid...
    Aaron Rumple, AIA

  3. #3
    Member
    Join Date
    2004-06
    Posts
    42
    Login to Give a bone
    0

    Default Re: protecting vba

    thanks for your reply, but... a password is not personal, if you share the vba and the password in p2p nets you have lost your program
    i meant one of that codes that make a 'request code' based on some hardware of the computer, so the licensed code is only valid to one computer
    can be used in vba?

  4. #4
    Revit Mararishi aaronrumple's Avatar
    Join Date
    2002-02
    Location
    St. Louis, MO
    Posts
    4,695
    Login to Give a bone
    0

    Default Re: protecting vba

    You can write in a verification system into your VBA. Essentially the code needs to check for some type of key you provide. I've done such a system for a VBA add-on app. The code for setting up a secure licensing scheme can be tedious.
    Don't drink the Kool-Aid...
    Aaron Rumple, AIA

  5. #5
    Member
    Join Date
    2004-06
    Posts
    42
    Login to Give a bone
    0

    Default Re: protecting vba

    nice
    where can i get some example-code or information to do that?
    thanks in advance

  6. #6
    Administrator richard.binning's Avatar
    Join Date
    2015-12
    Location
    In the foothills of the appalachians
    Posts
    2,260
    Login to Give a bone
    0

    Default Re: protecting vba

    Quote Originally Posted by inner
    nice
    where can i get some example-code or information to do that?
    thanks in advance
    There is an Open source locking dll that is freely available...I'll try to dig up a reference to it and post here.

    ---

  7. #7
    Member
    Join Date
    2004-06
    Posts
    42
    Login to Give a bone
    0

    Default Re: protecting vba

    Quote Originally Posted by richard.binning
    There is an Open source locking dll that is freely available...I'll try to dig up a reference to it and post here.
    ---
    thanks, that dll will be useful for me

Similar Threads

  1. Protecting DWG files
    By mark.perrins in forum CAD Management - General
    Replies: 7
    Last Post: 2011-01-28, 12:14 AM
  2. Protecting Blocks
    By dan.gamble in forum AutoCAD General
    Replies: 2
    Last Post: 2010-03-03, 03:38 AM
  3. Protecting Fields
    By jnoon in forum Dynamic Blocks - Technical
    Replies: 1
    Last Post: 2009-06-11, 09:22 PM
  4. Protecting Shared Parameters
    By mjdanowski in forum Revit MEP - General
    Replies: 6
    Last Post: 2009-01-12, 02:12 AM
  5. Protecting files with a password?
    By SaraS in forum AutoCAD LT - General
    Replies: 3
    Last Post: 2007-03-25, 07:05 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •