stopping starting application

Multimedia Builder

stopping starting application

Postby CharlieG » Tue Mar 06, 2012 4:01 pm

hi
me again, another bit of help needed.
is there anyway i can exit my .exe then when i start it again the countdown timers will still be running,maybe 6hours or more later and still counting down.
all help much appreciated.
CharlieG
 
Posts: 6
Joined: Sat Mar 03, 2012 1:21 pm

Re: stopping starting application

Postby dgilmour » Wed Mar 07, 2012 4:55 pm

You need to save timers values and current system time on exit, on next application start get current system time, calculate difference between time stamps and correct previously saved timers values according to calculated difference and re-run timers with corrected values.
dgilmour
 
Posts: 475
Joined: Fri Oct 22, 2010 11:29 am
Location: Kutná Hora, Czech Republic

Re: stopping starting application

Postby CharlieG » Fri Mar 09, 2012 3:51 am

thanks dgilmour
but far to complicated for me,thanks anyway
CharlieG
 
Posts: 6
Joined: Sat Mar 03, 2012 1:21 pm

Re: stopping starting application

Postby dgilmour » Fri Mar 09, 2012 5:26 am

This sample shows how to calculate day difference between two dates, you just need to modify it to calculate difference in seconds.
dayspan.zip
(1.25 KiB) Downloaded 341 times
dgilmour
 
Posts: 475
Joined: Fri Oct 22, 2010 11:29 am
Location: Kutná Hora, Czech Republic


Return to MMB

Who is online

Users browsing this forum: No registered users and 1 guest