Results 1 to 4 of 4

Thread: Do any one know this??

  1. #1
    Guest

    Wink

    Do anyone know how to make a 30-trail days shareware program??

  2. #2
    Fanatic Member faisalkm's Avatar
    Join Date
    Oct 2000
    Location
    Germany
    Posts
    752
    There can be many methods. U can store the Rundate and ExpirationDate somewhere in Registry and Update the Rundate each day and stop the program when Rundate>ExpirationDate. You should also check whether clock was set back by the user
    Faisal Muhammed
    Homepage:I Started making it in 1994 ...Still Under Construction
    Using

    Visual Basic 6.0 Enterprise SP5
    Embedded Visual Basic 3.0
    SQL Server 2000
    Windows 2000 Proff
    Delphi 6.0


    Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.

  3. #3
    PowerPoster Chris's Avatar
    Join Date
    Jan 1999
    Location
    K-PAX
    Posts
    3,238

    Thumbs up

    Leung! here same tips.

    It very easy to archieve this.
    All you need is save 3 data into a registry

    1. LastVirginDate
    2. LastUnloadDate
    3. Expired

    Step 1
    Upon your application first time run. Write the Date into the
    LastVirginDate fields in system registry.

    Set the Expired field to 0

    Step 2
    Save the Date into LastUnloadDate everytime you application
    is unloaded.

    Step 3
    On every time your application start, you need to do 3 things:
    [*]Check the EXPIRED field = 0/1? If it is "1" then Prompt user abt the
    Expired.
    [*]Make sure the current date is greater/equal to the LastunloadDate
    [*]Calculate the total days of the application being run by using the
    DateDiff("d",LastVirginDate, Date)
    If you found the return value from DateDiff is Negative value.
    Then proceed to set the Expired = 1 and prompt the user.

    NOTE: Possible encrypt all the data being save.

    Hope this can help you in your need.
    Cheers!

  4. #4
    Guest
    You may also want to look at this free control.
    http://www.activelock.com

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