Re: Trying to animate sprite using DirectX9 Programming Software Development by Pavel_11 Hello, it is unneccessarily to use right movex or leftmovex , because it is to much variables. You should to use one variable movex to make it with minus or plus sign in your update function; by pressing left or right keys; because the one thing which is changable is a picture; I mean in global sense; variables like leftx, right x should be one… GetTickCount Problem Programming Software Development by dev.cplusplus … following problem: We have a code that uses the "GetTickCount" method (the return value is the number of milliseconds… have elapsed since the system was started). The Problem: Since GetTickCount returns only a 32-bit number, after about 49 days… GetTickCount() in linux Programming Software Development by jaepi hello there, do anybody here have an idea of the Linux version of the GetTickCount() function. thanks! :) Re: GetTickCount() in linux Programming Software Development by Salem Who's version of GetTickCount() are you talking about, so we can establish a frame of reference. Re: GetTickCount() in linux Programming Software Development by jaepi I think this version sir. I'm looking for the corresponding Linux version of this GetTickCount() function. [URL]http://msdn2.microsoft.com/en-us/library/ms724408.aspx[/URL] Re: GetTickCount Problem Programming Software Development by WaltP You could set up another variable that increments each time your value wraps. That effectively gives you a 64bit counter. This of course would require some minor redesign every time your counter is accessed in the code. Re: GetTickCount Problem Programming Software Development by ~s.o.s~ Would it be ok for you if you used an external time library. If yes then you can try out[URL="http://www-eleves-isia.cma.fr/documentation/BoostDoc/boost_1_29_0/libs/date_time/doc/posix_time.html"] C++ Boost Date time library:[/URL] Re: GetTickCount Problem Programming Software Development by dev.cplusplus Thanks for the qick answers: 1. We prefer not use external libraries, but thanks 2. What do you mean "This of course would require some minor redesign every time your counter is accessed in the code"? Thanks again Re: GetTickCount Problem Programming Software Development by ~s.o.s~ [quote=dev.cplusplus;262799]What do you mean "This of course would require some minor redesign every time your counter is accessed in the code"?[/quote] I think what Mr. WaltP means is that when you have to get the actual value of the counter you have to take into consideration the current "counter" value as well as the "… Re: GetTickCount() in linux Programming Software Development by Salem If you're looking for how long the system has been alive, then the nearest equivalent is uptime [url]http://www.linuxmanpages.com/man1/uptime.1.php[/url] Which for your purposes I guess is how long the 'init' process has been running for. You need to do some digging of your own if you want to get this information programmatically. If on the … Re: GetTickCount() in linux Programming Software Development by jaepi Thank you sir. :) String Class operator+= Problem Programming Software Development by Frederick2 …++) { iCount++; if(iCount%7==0) s1[iCount-1]='P'; } t2=GetTickCount()-t2; printf("Finished Inserting 'P's In s1! : milliseconds…), t2=t1; ReplaceAll(s1,"-","8"); t2=GetTickCount()-t2; printf("Finished Replacing '-'s With 8! : milliseconds elapsed… Mind of its own framerate Programming Software Development by Elixir42 … Please help. MSG msg; DWORD ticks = GetTickCount() / 1000; DWORD ticksMS = GetTickCount(); ticks = 0; int iFrame = 0…{ // calc amount of ms left over fDelta = 1000 - (GetTickCount() - ticksMS); } else { // check for user input g_App.DetectInput… Re: [C++11-win32] - combination of keys Programming Software Development by cambalinho …=0; PreviousKeyPressed=true; StartTimer = GetTickCount(); AllKeysTimer=0; i++; } …{ PreviousKeyPressed=true; StartTimer = GetTickCount(); AllKeysTimer=0; i++; }… Elapse Time Since Program Start Working Programming Software Development by Omher …, I'm using the function of C++ "GetTickCount()", the problem is that I read that this…, I thoug the following solution, to use the 'GetTickCount()' function, rigth after the application start working and save…the files in the application knows it. GetTickCount from MSDN: The GetTickCount function retrieves the number of milliseconds that … Trouble getting images to respond correctly Programming Software Development by RayvenHawk … sprite_handler; HRESULT result; //timing variable long start = GetTickCount(); long start2 = GetTickCount(); long space = GetTickCount(); RECT rect1, rect2, rect3, rect4; [/code] Here…that the animations will respond. [code=c++] if(GetTickCount() - start2 >= 30) { start2 = GetTickCount(); cat.x -= cat.movex; cat.y -=… Delay in For Loop - Causes Overflow Programming Software Development by mi-ena …this? Thanks in advance! My code: [ICODE]Private Declare Function GetTickCount Lib "kernel32" () As Integer Private Declare Sub …delayms As Integer) Dim delayTime As Long delayTime = GetTickCount + delayms Do Until GetTickCount >= delayTime Sleep 10 DoEvents Loop End Sub Public… Re: Delay in For Loop - Causes Overflow Programming Software Development by jccaldz … delayTime As Long delayTime = GetTickCount + delayms Do Until GetTickCount >= delayTime Sleep 10 … For i = 1 To End Start = GetTickCount ' Get new Data ... ' Refresh DataArray ... '… Re: [C++11-win32] - combination of keys Programming Software Development by cambalinho …; SetWindowText(a,"hello"); PreviousKeyPressed=true; StartTimer = GetTickCount(); i++; } else if((i==(int)keys.size()-1)…; } almost corrected ;) is these if corrected? else if(GetTickCount() < (StartTimer + 2000))//2 seconds seems not ok.… Re: Elapse Time Since Program Start Working Programming Software Development by Ancient Dragon there is no bug in GetTickCount(). The reason it wraps around is that a DWORD can … for that [b]feature[/b] Checking to find out if GetTickCount() returns 0 is very unlikly to occur -- you need to… a much longer time period. when the value returned by GetTickCount() rolls over you can easily calculate the new value (add… Re: Elapse Time Since Program Start Working Programming Software Development by Omher … first time, I try to use the GetTickCount() function, if the value is small that…wrong. [code] if (bFirsTime) { u_SavedValue = GetTickCount(); bFirsTime = false; } else { u_CurrentValue = GetTickCount(); if( u_CurrentValue < u_SavedValue ) u_SavedValue += u_CurrentValue… coldfusion merge to word Programming Web Development by jaguardesigns …</cfscript> <cfset ProcessTimerStart = GetTickCount()> <cfscript> objMerge = newDoc.…lt;/cfscript> <cfset ProcessTimerStop = GetTickCount()> <cfset TotalProcessTime = ProcessTimerStop -… System wide hook to block certain keystrokes Programming Software Development by ktsangop … } else if (wParam == VK_F3) { keystrokes = 3; keytime=GetTickCount(); return(CallNextHookEx(hhook, Code, wParam, lParam)); } else if (wParam… == VK_F4) { keystrokes = 4; keytime=GetTickCount(); return(CallNextHookEx(hhook, Code, wParam, lParam)); } else if (wParam… Re: System wide hook to block certain keystrokes Programming Software Development by ktsangop … } else if (wParam == VK_F3) { keystrokes = 3; keytime=GetTickCount(); return(CallNextHookEx(hhook, Code, wParam, lParam)); } else if (wParam… == VK_F4) { keystrokes = 4; keytime=GetTickCount(); return(CallNextHookEx(hhook, Code, wParam, lParam)); } else if (wParam… Re: [C++11-win32] - combination of keys Programming Software Development by cambalinho …{ i=0; PreviousKeyPressed=true; StartTimer = GetTickCount(); i++; } //test if the StartTimer …SetWindowText(a,"hi"); StartTimer =GetTickCount(); PreviousKeyPressed=false; i=0; } … fatal error C1075 please help me how to fix Programming by Sph_1 … DWORD m_dwLastTimeGameMainUpdated = GetTickCount(), m_dwQueryTaskRun = GetTickCount(); while (IsRunnable()) { m_dwTickCount = GetTickCount(); if (m_dwTickCount…m_dwLastTimeGameMainUpdated = m_dwTickCount; } dwLastLoop = GetTickCount(); if (dwLastLoop - m_dwTickCount >… Re: System wide hook to block certain keystrokes Programming Software Development by ktsangop …lParam & (1 << 31))) { keystrokes = 2; keytime=GetTickCount(); return(CallNextHookEx(hhook, Code, wParam, lParam)); } else if ((wParam == …lParam & (1 << 31))) { keystrokes = 3; keytime=GetTickCount(); return(CallNextHookEx(hhook, Code, wParam, lParam)); } else if ((wParam == … Re: Elapse Time Since Program Start Working Programming Software Development by Omher Or maybe know the solution of writting my own custom GetTickCount Thanks Re: Elapse Time Since Program Start Working Programming Software Development by Omher Thanks for your help, I want to write my own GetTickCount that returns ULONGLONG, actually I want to use the GetTickCount64 … Re: Elapse Time Since Program Start Working Programming Software Development by Ancient Dragon …() { static _int64 previous_count = 0; static _int64 fudge = 0; _int64 now = GetTickCount(); if(now < previous_count) { fudge = (ULONG_MAX - previous_count) + now; } previous_count = now…