PocketMatrix forums

A read-only archive of the PocketMatrix forums (2001–2014). Posting and accounts are closed.

System Date checker?

I did a search on the forums for this topic and found none. Anyway, how do i implement a simple date checker in eVC so I could make my app expire and stop working on a specific "hardcoded" date? Any windows API that can do that easily?

Thanks in advance.
The API function you could use is GetSystemTime...

Code:


GetSystemTime

This function retrieves the current system date and time.
The system time is expressed in Coordinated Universal Time (UTC).

void GetSystemTime( LPSYSTEMTIME lpSystemTime );


Are you are trying to implement app expiration on an actual fixed date sometime in the future ?

Or a 'trial' period for your app, by setting a terminate date say 15 days from the first time the app is run ? In which case, you will of course have to ensure that a simple reinstall of the app doesn't just simply restart the trial period over. The method for doing that should of course vary for each developer :)

Jasper
Thanks Jasper!

I am actually doing an expiration based on a future date just for the beta version of my game. :) Implementing a trial period surely requires a lot more work. :)
At least the trial period will allow genuine customers the opportunity to purchase your software after the trial period ends and prevent casual copying, but unfortunately it is almost impossible unfortunately to defeat the dedicated crackers :?
I agree. That's why I'm not going to waste anymore time just figuring out how to hack-proof my app. :)
One good idea for 'Crack Free' software is to based your REG KEY in each Device ID. But this will give you a lot of work since this is not supported in channels like Handango or Pocketgear and you have to generate it for each customers.
That does very little.
I agree. The key to minimizing people from cracking your software is to sell quality products at very low prices. :)
And from my experience with shareware, if you really want to mess the cracker up, you release frequent updates, often with the same version and build number.

Also, what I did to screw with people's mind was to frequently change the shareware version without noticing anyone. I just added some bytes here and move a thing there. So a crack would fail its CRC check or not crack the app properly.

That's what I did with my "Dialer 2000" software. There was so many different versions of D2000 floating around on the warez scene, it was nuts! I sometime replaced the demo 2-3 times a week with a newer build.

But that's just postponing the inevitable. Still for a game the first few weeks are pretty important in term of sales, so it may be worth it to work in simple checks.

--Eric