4
Contributors
13
Replies
14
Views
5 Years
Discussion Span
Last Post by WaltP
Featured Replies
  • you need to check the system date and compare with desired date on start up Read More

  • 1
    WaltP 2,905   5 Years Ago

    Do [B]NOT [/B]use the registry. As a new programmer you may destroy your system. As [B]debasisdas[/B] said, "[I]The simplest thing to do is to check system date on start up.[/I]" Which means you need to look up the [I]Date[/I] functions in VB. There are at least 2 that will help … Read More

0

The simplest thing to do is to check system date on start up.

suppose you want for 30 days from today ---say 25_sep-2011.

in the start up check if the date is less than the above date.

if it is more display an error message.

for a better and full proof solution you need to write into system registry.

-1

Stick with the registry method, for it will allow you to make exe's expire with respect to date or number of trials.

Comments
terrible suggestion. He's a NEW programmer, or did you miss that?
0

you are the geneus but im still unable to under stand please tell code me for expire
my exe after two days

1

Do NOT use the registry. As a new programmer you may destroy your system.

As debasisdas said, "The simplest thing to do is to check system date on start up." Which means you need to look up the Date functions in VB. There are at least 2 that will help you.

Comments
I did't see that coming
0

try this

Dim dtmTest As Date
dtmTest = DateValue(Now)

next you need to compare the date with desired date using DateDiff.

Edited by debasisdas: n/a

0

As I said:

... you need to look up the Date functions in VB. There are at least 2 that will help you.

Do you understand those statements?

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.