PDA

View Full Version : protecting vba



inner
2004-06-15, 05:49 PM
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?

aaronrumple
2004-06-15, 06:35 PM
Add a password. However, the password isn't that hard to crack, but should deter most.

inner
2004-06-15, 06:53 PM
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?

aaronrumple
2004-06-15, 07:15 PM
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.

inner
2004-06-15, 07:45 PM
nice
where can i get some example-code or information to do that?
thanks in advance

richard.binning
2004-06-15, 08:25 PM
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.

---

inner
2004-06-16, 08:28 AM
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