Click here to Skip to main content
15,924,829 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: vcl in borlands c++ to be used in vc++ Pin
Christian Graus26-Sep-06 19:39
protectorChristian Graus26-Sep-06 19:39 
GeneralRe: vcl in borlands c++ to be used in vc++ Pin
zareee26-Sep-06 22:06
zareee26-Sep-06 22:06 
GeneralRe: vcl in borlands c++ to be used in vc++ Pin
David Crow27-Sep-06 3:28
David Crow27-Sep-06 3:28 
QuestionWin32 Window Boundry Pin
beeejay26-Sep-06 18:24
beeejay26-Sep-06 18:24 
AnswerRe: Win32 Window Boundry Pin
Waldermort26-Sep-06 22:25
Waldermort26-Sep-06 22:25 
GeneralRe: Win32 Window Boundry Pin
beeejay27-Sep-06 14:34
beeejay27-Sep-06 14:34 
QuestionPower Management Pitfalls? Pin
Peter Weyzen26-Sep-06 12:26
Peter Weyzen26-Sep-06 12:26 
QuestionProblem with timer Pin
enne8726-Sep-06 10:49
enne8726-Sep-06 10:49 
Hi!

I've got a SDI-Application and want to implement a counter which displays for how long my application is running since I compiled it.
I use timeGetTime() but it seems as if timeGetTime() is very imprecisely. Afer 60 seconds my counter counted to 62 seconds.
Here's a part of my program:
<br />
       if ((::GetTickCount() - dwTime) > 1000)<br />
	{<br />
	   dwTime = ::GetTickCount();<br />
<br />
            if (view->GetSeconds() < 59)<br />
                  view->SetSeconds(view->GetSeconds() + 1);<br />
            else if (view->GetSeconds() >= 59)<br />
	     {<br />
                .<br />
                .<br />
		.<br />
              }<br />
		//Time is shown<br />
	           strTime.Format(_T("%02d:%02d:%02d"), view->GetHours(), <br />
                   view->GetMinutes(), view->GetSeconds());<br />
	           view->m_Timer.SetWindowTextW(strTime);  <br />
		<br />
         }<br />


I would really appreciate if someone could help me.

Please excuse my bad English Smile | :)

enne
AnswerRe: Problem with timer Pin
Mohammad A Gdeisat26-Sep-06 10:55
Mohammad A Gdeisat26-Sep-06 10:55 
AnswerRe: Problem with timer Pin
Mohammad A Gdeisat26-Sep-06 10:57
Mohammad A Gdeisat26-Sep-06 10:57 
AnswerRe: Problem with timer Pin
Maximilien26-Sep-06 11:00
Maximilien26-Sep-06 11:00 
AnswerRe: Problem with timer Pin
enne8727-Sep-06 3:08
enne8727-Sep-06 3:08 
AnswerRe: Problem with timer Pin
David Crow27-Sep-06 3:31
David Crow27-Sep-06 3:31 
AnswerRe: Problem with timer Pin
Hamid_RT27-Sep-06 8:24
Hamid_RT27-Sep-06 8:24 
AnswerRe: Problem with timer Pin
enne8728-Sep-06 8:25
enne8728-Sep-06 8:25 
QuestionSimple evc++ exe to delete target files/folder for ppc Pin
ZapMe126-Sep-06 10:46
ZapMe126-Sep-06 10:46 
AnswerRe: Simple evc++ exe to delete target files/folder for ppc Pin
Mohammad A Gdeisat26-Sep-06 11:01
Mohammad A Gdeisat26-Sep-06 11:01 
GeneralRe: Simple evc++ exe to delete target files/folder for ppc Pin
ZapMe126-Sep-06 11:27
ZapMe126-Sep-06 11:27 
GeneralRe: Simple evc++ exe to delete target files/folder for ppc Pin
Mohammad A Gdeisat26-Sep-06 11:54
Mohammad A Gdeisat26-Sep-06 11:54 
GeneralRe: Simple evc++ exe to delete target files/folder for ppc Pin
ZapMe126-Sep-06 13:04
ZapMe126-Sep-06 13:04 
QuestionReading from UNICODE File Pin
AlekseyUS26-Sep-06 10:30
AlekseyUS26-Sep-06 10:30 
AnswerRe: Reading from UNICODE File Pin
Peter Weyzen26-Sep-06 12:36
Peter Weyzen26-Sep-06 12:36 
AnswerRe: Reading from UNICODE File Pin
Waldermort26-Sep-06 13:05
Waldermort26-Sep-06 13:05 
AnswerRe: Reading from UNICODE File Pin
Taka Muraoka26-Sep-06 19:12
Taka Muraoka26-Sep-06 19:12 
AnswerRe: Reading from UNICODE File Pin
Hamid_RT26-Sep-06 21:59
Hamid_RT26-Sep-06 21:59 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.