licensing

This is a discussion on licensing within the C Programming forums, part of the General Programming Boards category; How to write a licencng program. Let us say if I want to sell a product to a perticular customer ...

  1. #1
    Registered User
    Join Date
    Jun 2003
    Posts
    13

    licensing

    How to write a licencng program.

    Let us say if I want to sell a product to a perticular customer and wants that product shud be expired after a month.
    how I can do this.
    If program checks local system date, always the user can change local m/c s system date so that the product never expires.

  2. #2
    It's full of stars adrianxw's Avatar
    Join Date
    Aug 2001
    Posts
    4,831
    Store the date the program first ran in some cryptic form in one of your apps datafiles. Everytime you start up, check to see if the date is later, if not, exit, if so, store that date as well, you can bump this date everytime the program runs, 30 days later, exit.

    Not particulaly sophisticated but easy to do.
    Wave upon wave of demented avengers march cheerfully out of obscurity unto the dream.

  3. #3
    Registered User
    Join Date
    Jun 2003
    Posts
    245
    If the system is running windows, check the date of the pagefile and a few of the files in the windows system directory. This should give you the minimum time to lookout for when your program first starts up, and, normally, the pagefile contains the date and time the computer was last rebooted (as it's opened on bootup, and modified continuously thereafter)

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 5
    Last Post: 08-05-2005, 01:09 PM
  2. RakNet drops licensing fees
    By Rak'kar in forum Networking/Device Communication
    Replies: 0
    Last Post: 07-12-2004, 02:45 PM
  3. volume licensing?
    By Waldo2k2 in forum Tech Board
    Replies: 5
    Last Post: 04-22-2004, 01:06 PM
  4. Program licensing
    By mathos in forum Tech Board
    Replies: 5
    Last Post: 06-27-2003, 05:13 AM
  5. Software Licensing
    By jester in forum A Brief History of Cprogramming.com
    Replies: 4
    Last Post: 12-30-2001, 06:42 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21