|
-
May 29th, 2001, 03:24 AM
#1
Thread Starter
Lively Member
gettickcount() bug?
I have this proxy server running on Windows 98 for months now, and when I tried running a API call from this example: http://www.vbworld.com/api/winapi/index3.html I seem to get negative numbers. Is it because Windows is not designed to run that long?
-
May 29th, 2001, 05:28 AM
#2
Frenzied Member
The elapsed time is stored as a DWORD value. Therefore, the time will wrap around to zero if the system is run continuously for 49.7 days.
-
May 29th, 2001, 02:08 PM
#3
Monday Morning Lunatic
DWORD is unsigned, however, VB's Long is signed, meaning that when you get past 2 billion (half the range) it wraps round to the most negative number.
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|