1 Attachment(s)
VB - A Program Registration Scheme
Attached is a project (actually two projects) that show one way of having the user register his copy of your program. This is the way it works:
- The main application displays a registration screen with two options: "Register" and "Request Registration Key".
- If the user selects "Register" a new screen is shown that asks the user for his name and tells him that if he continues it will generate an e-mail message to you (via MAPI) and that you will send him the registration key by return e-mail. If he continues, the program gets his hard drive serial number and includes it in the e-mail to you.
- Once you receive the registration request email, you use the second project (GenKey) to generate a registration key by way of a simple algorithm that you can change based on the hard drive serial number. Just remember that the algorithm is in both projects and it must be exactly the same in both.
- You then send the registration key back to the user and have them enter it in the second part of the registration screen which writes the key to the registry.
- When they start the main program again it uses the same algorithm to see if the registration key in the Registry matches the HD serial number. If it matches the program starts (see Notes below). If it doesn't match or if there is no registry entry, the program does not start or you could arrange it so that it starts with only a few demo functions available.
Notes:- Your main form must be shown using vbModal.
- You will need to modify the program to change the constant named EMAIL to your e-mail address.
- You should change the registration key algorythm. See CalcRegKey in modProtect and Sub Main in modGenKey. The changes should be the same in both places.