Jump to content

  • Log In with Google      Sign In   
  • Create Account

Awesome job so far everyone! Please give us your feedback on how our article efforts are going. We still need more finished articles for our May contest theme: Remake the Classics

do something once a month - crossplatform


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
2 replies to this topic

#1 abcdef44   Banned   -  Reputation: 6

Like
0Likes
Like

Posted 02 November 2012 - 06:12 AM

Hi
how to do something only once a month? C++ cross platform Windows/Mac/Linux.
Many thanks in advance
Michael

Ad:

#2 joew   Crossbones+   -  Reputation: 2416

Like
0Likes
Like

Posted 02 November 2012 - 06:15 AM

You use the API the platform gives you for task scheduling.. i.e. for Windows you would use the TaskScheduler with TASK_TRIGGER_MONTHLY. There really isn't a cross platform manner to do this.

Edited by joew, 02 November 2012 - 06:18 AM.


#3 NightCreature83   Crossbones+   -  Reputation: 1147

Like
0Likes
Like

Posted 02 November 2012 - 07:38 AM

And on linux you would use cron http://en.wikipedia.org/wiki/Cron
Worked on titles: CMR:DiRT2, DiRT 3, DiRT: Showdown, GRID 2




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS