CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: trial version

  1. #1
    Guest

    trial version

    Does anyone know the mechanism of how a trial version works? In other words, How do you write your code in order for your program to refuse being launched after say 30 days?

    By the way, I know some developer write date information in the registry, but it is not perfect. Any other way?

    Thanks.


  2. #2
    Join Date
    May 1999
    Location
    Seattle, WA USA
    Posts
    423

    Re: trial version

    The easiest way to do it, is to write a date somewhere in the registry (a hidden system key) the first time your program is run. Each time your program runs after that, you check that date, if it is past your 30 days, then exit your program.

    You could also base it on number of times the program has been run, this would keep people from changing there clock to get longer use of your program.

    --michael


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

Featured