So? why its not good? You can write a function like this:<br>
<br>
void MyDelay( DWORD dwMilliSeconds )<br>
{<br>
DWORD dwInitial = GetTickCount();<br>
while( ( GetTickCount() - dwInitial ) < dwMilliSeconds );<br>
}<br>
<br>
As I understand, you want a delay, thats a difference between two snapshots of time. GetTickCount can do that perfectly well.<br>
<br>
Or am I missing something, again!<br>
<br>
: That's no good. My Borland help file says that "GetTickCount" just returns the number of milliseconds since Windoze was started. Also says that at 49.7 days it will wrap to 0. Here is the fade from red (after the screen fills with blood) to black code.<br>
: <br>
: for(int x = 0; x < 256; x++)<br>
: {<br>
: while((GetTickCount() - dwTime) < 500)<br>
: FillRect(fDC, &faderect, (CreateSolidBrush(RGB(255, x, x))));<br>
: }<br>
: <br>
: Any other ideas? Oh and just in case it matters, all of this code is in "fight.dll", not my executeable.<br>
: <br>
: -Seph<br>
: <br>
<br>