Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Software Expiration Code Sample

Does anyone have any sample code that does software expiration in a way
that's a bit more sophisticated than moving ahead a clock?

*** Sent via Developersdex http://www.developersdex.com ***
  #2   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Software Expiration Code Sample

You could use GetSetting and SaveSetting to write a time based figure to the
registry - but this would still be based on the users system time. Give an
example of what you would consider more sophisticated.

--
Regards,
Tom Ogilvy

"Larry" wrote in message
...
Does anyone have any sample code that does software expiration in a way
that's a bit more sophisticated than moving ahead a clock?

*** Sent via Developersdex http://www.developersdex.com ***



  #3   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 6
Default Software Expiration Code Sample

Something that's a bit more sophisticated is something that will look at
things a bit gradually. For instance, If i set the system clock
forward, run the application, and then move it back.

Under most scenarios, then things will not work any longer. What if
someone sets their system clock forward by mistake (like wrong year 2006
instead of 2005), only to move it back. It could be an error.

Make sense.

Have any creative ideas on how to work around this?



*** Sent via Developersdex http://www.developersdex.com ***
  #4   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 27,285
Default Software Expiration Code Sample

Not on a standalone machine (unless you want to limit the number of times
the file can be opened). On a Internect Connected machine, I suppose you
could query an external clock such as the Atomic clock.

--
Regards,
Tom Ogilvy


"Larry" wrote in message
...
Something that's a bit more sophisticated is something that will look at
things a bit gradually. For instance, If i set the system clock
forward, run the application, and then move it back.

Under most scenarios, then things will not work any longer. What if
someone sets their system clock forward by mistake (like wrong year 2006
instead of 2005), only to move it back. It could be an error.

Make sense.

Have any creative ideas on how to work around this?



*** Sent via Developersdex http://www.developersdex.com ***



  #5   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 11
Default Software Expiration Code Sample



Why not use Kernel32:GetTickCount function to accumulate no. of
milliseconds the program is running.



Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Macro Expiration Code Teddy-B Excel Discussion (Misc queries) 3 October 20th 08 05:15 PM
color code a row by expiration date? kate Excel Worksheet Functions 6 August 15th 06 08:14 AM
Registration Key Sample Code Larry[_17_] Excel Programming 0 July 5th 05 10:05 AM
Need Sample VBA Code Bill Sturdevant[_2_] Excel Programming 3 January 26th 05 10:25 PM
Code For Expiration Date Juan[_3_] Excel Programming 2 October 25th 03 09:15 AM


All times are GMT +1. The time now is 08:14 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"