- This topic has 2 replies, 2 voices, and was last updated 15 years, 7 months ago by .
Viewing 2 reply threads
Viewing 2 reply threads
- The forum ‘C Programming’ is closed to new topics and replies.
Home › Forums › C Programming › license validation
hi,
i need license validation code.if any body having the idea how to validate license based on the duration help me.
regards
suresh
If you want to see if a date is less than another , I would do:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 | <br /> if ( expirationYear > licenseYear )<br /> licenseValid = true;<br /> else if ( expirationYear == licenseYear )<br /> {<br /> if ( expirationMonth > licenseMonth )<br /> licenseValid = true;<br /> else if ( expirationMonth == licenseMonth )<br /> {<br /> if ( expirationDay > licenseDay )<br /> licenseValid = true;<br /> else if ( expirationDay == licenseDay )<br /> licenseValid = true;<br /> else<br /> licenseValid = false;<br /> }<br /> else<br /> licenseValid = false;<br /> }<br /> else<br /> licenseValid = false;<br /> <br /> <br /> |
hi,
thanks for you reply.
my problem is this software running in the client side.if client changes the system date and time then that valdiation is wont works.if have any alternate solution help me.
thanks & regards
suresh