Hot to protect my program
Thanks
Thanks
You might want to take a look at the free Shareware Starter Kit available at:
http://msdn.microsoft.com/vbasic/downloads/starterkits/default.aspx
It includes code for product activation and registration - review the code to see how it works, and then "borrow" what you need for your own program.
Hope this helps,
Steve Hoag
Visual Basic Express
Thank you for the information. I am thoroughly enjoying the experience with the Microsoft tools and support.
I downloaded the Starter kit and installed it. When I Created a new project with the template I got the following error.
"A problem was encountered creating the sub project 'Sharewareservice' . The template specified cannot be found."
What do I need to do to corrent this?
There are other ways to "protect" your program - for example, you might create a password form as your startup form and require users to enter a password in order to run your program. This approach isn't perfect, since a user could still give both your program and the password to someone else. And of course, you would probably only want to show this form once, since it would be annoying to have to ener a password every time.
Another approach is to use a "time bomb" - essentially checking the date on startup, and if the date is, for example, 60 days since the application was first run, display a message and abort the program. You would then have a second version of the program that doesn't contain the time bomb that you would distribute to users that have registered with you (and I assume, paid you).
Again, this approach does nothing to prevent piracy - a user could still pass on copies of the authorized version.
The bottom line is that if you want to commercially distribute your application and provide a professional registration process, you may need to move beyond the Express edition. The Professional version of Visual Basic allows you to create Windows Installers which can include a Product Key like the ones you see in many Microsoft products. There may also be third-party installation tools that allow you to do this, but I'm not sure if they would work with the Express edition.
Do you have any idea why I am getting the above error when I open the Shareware Project Template?
Thanks for all the great information. I will look at purchasing the Professional vesion as well.
Carl
Steve
No I do not. In fact after getting the error there is nothing displayed in the Solution Explorer. I have tried to reinstall the Starter kit several times but I get the same response each time.
Thanks for your assistance is finding the issue.
Carl
I would suggest that you start a new post specifically about your Starter Kit problem - perhaps someone out there has run into the same issue.
Steve
The following topic explains the SerialNumberTemplate property:
http://msdn2.microsoft.com/en-us/library/w3xwh311(en-US,VS.80).aspx
Hope this helps,
Steve Hoag