Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old June 20th, 2003, 01:25 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to skea
Default How Do You Time !!!

Please Help me,
If you have created your Software application, how can you be able to time it so that it appears a Demo Version.
 
Old July 1st, 2003, 01:03 PM
Authorized User
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to natmaster Send a message via AIM to natmaster Send a message via MSN to natmaster
Default

are you wanting to have it not function once the time expires?

there is a simple way to do this, where you set the time in an encrypted file whenever they install the application (and so they can't just delete the file, if the file doesn't exist disable it too) then check the computer time to see if their time has run out every time the application starts (or maybe when it is running occationally also because ppl could just never close the app). but, there is a serious flaw in this way, the user can just set their computer time to the far future when they install your application and then set it back..........so if you want a rlly good one you will have to create some code that monitors the computer time changing, which is beyond me.

----------------------------
http://aeonofdarkness.com
 
Old July 1st, 2003, 08:25 PM
Authorized User
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

How do you think about to take it in this way:
     Check the application running times when it startup, if the times is out of your setting value, then pop message to user and disable it.
 
Old July 2nd, 2003, 12:09 PM
Authorized User
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to natmaster Send a message via AIM to natmaster Send a message via MSN to natmaster
Default

isn't that what i said?

----------------------------
http://aeonofdarkness.com
 
Old July 2nd, 2003, 07:46 PM
Authorized User
 
Join Date: Jun 2003
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Sorry, I means count the application use times, or count the main functions use times, such as we can disable it if the times out of 30 times .
 
Old July 3rd, 2003, 01:06 PM
Authorized User
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to natmaster Send a message via AIM to natmaster Send a message via MSN to natmaster
Default

ahh, ok, that's one way to do it :)

----------------------------
http://aeonofdarkness.com
 
Old July 9th, 2003, 03:09 PM
Registered User
 
Join Date: Jun 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via MSN to skea
Default

 Thank You So much Natmaster and Daniel hn for all the help you rendered me. keep it up and God Bless you./
kea
 
Old July 10th, 2003, 12:23 AM
Registered User
 
Join Date: May 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
other way is that instead of using a file u can write the value in the registry, and every time u run ur application just check the value

Devinder Yadav
VC++\VBA\C++
Wiley Support Team





Similar Threads
Thread Thread Starter Forum Replies Last Post
synchronizing pocket pc time with desktop time bobbyrayudu83 C# 1 April 2nd, 2011 04:28 AM
Time Shift time in minus time out lechalas Beginning VB 6 1 August 11th, 2008 01:56 PM
time zone & day light time rajn ASP.NET 1.0 and 1.1 Professional 0 August 7th, 2007 05:02 PM
How to display the time(running time) in Excel swaroop Excel VBA 1 March 29th, 2007 01:56 AM
Using xs:time to generate time in desired format krayan001 XSLT 0 June 27th, 2005 04:28 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.