View previous topic :: View next topic |
Author |
Message |
Symbol I'm a spammer Reputation: 0
Joined: 18 Apr 2007 Posts: 5094 Location: Israel.
|
Posted: Sun Dec 21, 2008 2:02 pm Post subject: |
|
|
MSDN wrote: | VOID WINAPI Sleep(
__in DWORD dwMilliseconds
); |
As GRoot said, "DOWRD" is the same as unsigned int, and Sleep takes unsigned int as a parameter. besides, I'm used to use unsigned int for variables, unless the value could be negative. it really doesn't matter, you could pass -2 as a parameter, then it would simply sleep for 4294967294 milliseconds.
It also prevents warnings/errors. (depending on your compiler's settings, at least this is the case with constants)
You could use signed int, but as I said, I'm used to write unsigned int.
|
|
Back to top |
|
|
nwongfeiying Grandmaster Cheater Reputation: 2
Joined: 25 Jun 2007 Posts: 695
|
Posted: Tue Dec 23, 2008 12:09 pm Post subject: |
|
|
If you guys argue, can you actually spell things correctly and use proper grammar. It hurts to read the flames when they're poorly made.
Note: no one is two words and English is case-sensitive (e.g. i is not I).
|
|
Back to top |
|
|
Hieroglyphics I post too much Reputation: 0
Joined: 06 Dec 2007 Posts: 2007 Location: Your bedroom
|
Posted: Wed Dec 24, 2008 2:40 am Post subject: |
|
|
Dude Groot Shut the fuck up, I don't mind you but don't think for a second that you're a better coder than Spencer
_________________
|
|
Back to top |
|
|
|