Please help me. I want to make my software a trial version for 30 days. Help me with code to use , and the steps. •̸ŤђαϞĸs

Easy way is to have text file inside the remote folder and keep writing the count every day and check for the count in each log in and after 30th day block the application. Need to take that text file should be encripted and should not be easily accessable to the user. For more ideas please share your application details like Is it offline tool? or connects to DB over network etc.

•̸ŤђαϞĸs. But I mean , I want to give the software out to someone. And I want it to expire with 30days θƒ use by the person. •̸how can I go about that.
ŤђαϞĸs

Simple way is to have encripted textfile for control in remote location and each time the app open check the count. if the count exceeds close the app.

you can use registry values for this . here is a link having detail information and code. hope this will solve your prob :) Click Here

Regards

Include a text file that keeps the date during the installation. Each time the person logs in, Check the System date against the date in the file (Installation date). If the difference is greater that 30 days, exit the app.

agbenaza if a person change date every time before runing the application then ?

Waqas you can keep the file encrypted and under some remote folder where user wont be able to reach and decrypt the file. Is that make sense?

pgmer , sir i mean if a person change the system date of his computer then ? the agbenaza idea i think wont work.
and if you are make a encrypted file then i think you can just count the number of application is run by the user if you have limit of 30 times and user use this application 30 in a week then :P ? i think the best way to use windows registry for this .you can further visit the link i posted in my above post , you can better understand it :)

Best Regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.