Click here to Skip to main content
15,896,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
please help me!!!give c++ trial period code
I have an application this is alredy license but in this application use my functionlity put custome .afl file this file make in c++ i make this .afl file as trial period.So how to make this .afl file as 7 day trial period.....so plz help me...
Posted

How about:
at startup, check if the first start time is stored somewhere in the registry (you chose a registry path of your own)
- if yes, calculate the elapsed time since that date
     if expired --> exit
     if not expired --> continue
- if no, set the current time in some registry variable --> continue

Regards
Andi

PS: this is the basics. You may chose to store the date somewhere else and/or to calculate some hash with the first date to make it harder to cheat...
PPS: We do not do your coding here. If you have a more specific problem we are glad to help you :-)
PPPS: Why do you repost that same question twice (How to make software trial period ?[^])? Beware of becoming reported as spammer = account locked!
 
Share this answer
 
v3
Comments
zozzoooo 25-Oct-13 8:18am    
thank u so much for this but i am beginner so actual logic for this i know but how to apply in my task i am confused...so plz help...thank u in advance...plz
Andreas Gieriet 25-Oct-13 9:34am    
What have you tried? Even as a beginner you start somewhere. Are you attending a course or a training? If yes, check your text book on how to start. If you learn it yourself, work through a basic tutorial and chose adequate training examples.
If you then have questions, go ahead and ask *specific* questions on a *specific* problem. You don't get any one here to do your job. If you are a beginner, you probably want to learn something. If we past the solution here for you, you have no benefit in learning it.
Andi
PS: You may have noticed that people here try to write full sentences with full words - "u" and "plz" and alike are crap.
zozzoooo 26-Oct-13 5:13am    
Thank You so much for this..basically i am designer so i am savvy in codeing.That reason i straight call for code.
Andreas Gieriet 27-Oct-13 6:23am    
Still no code from anyone: show your efforts and we help where you get stuck. That's how it works.
Cheers
Andi
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900