Click to See Complete Forum and Search --> : dll
jude12
Nov 27th, 2001, 03:52 AM
hi
Is any one knows to expire a dll(my own one ) after particular
date.
jim mcnamara
Nov 27th, 2001, 08:54 AM
Use the Registry. Write an expiration date to the Registry the first time the .dll is called. Everytime it's called:
check Registry to find expiration date
If not found then
write date to registry (today + 30 days)
exit
End if
If found then
Read date from Registry
compare with today's date
Exit if today > Expiration date.
End if
Use the VB SaveSetting, GetSetting functions.
Use DateDiff() function to compare dates.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.