the new warcraft 3 frozen throne product id is
PX3W
This has been known for some time thanks to /stats =P
Wow...I would've never known
By the way...
(DWORD) 'W3XP' is more correct
Or a string, PX3W works too ;D
Not unless you're using VB, in C++ a string would cause ipban :P
Quote from: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
Quote from: Camel on July 01, 2003, 09:56 PM
Quote from: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
No, string literals are terminated with '\0'
Quote from: Eibro on July 01, 2003, 09:58 PM
Quote from: Camel on July 01, 2003, 09:56 PM
Quote from: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
No, string literals are terminated with '\0'
Not if you cast "PX2W" as a DWORD. :)
Quote from: Camel on July 01, 2003, 09:59 PM
Quote from: Eibro on July 01, 2003, 09:58 PM
Quote from: Camel on July 01, 2003, 09:56 PM
Quote from: DarkMinion on July 01, 2003, 09:29 AM
Not unless you're using VB, in C++ a string would cause ipban :P
No it wouldn't. In a C++ DWORD it would cause an ipban.
htonl('W2XP') == "PX2W"
No, string literals are terminated with '\0'
Not if you cast "PX2W" as a DWORD. :)
Please know what you're talking about before posting. If you cast "PX2W" as a DWORD, you'll get the address of the string literal, and not the string's "contents".
Additionally, on x86 and in Visual C++, '1234' == *(PDWORD)"4321",
not htonl('1234') == *(PDWORD)"4321".
Quote from: Skywing on July 01, 2003, 10:18 PM
Please know what you're talking about before posting. If you cast "PX2W" as a DWORD, you'll get the address of the string literal, and not the string's "contents".
Additionally, on x86 and in Visual C++, '1234' == *(PDWORD)"4321", not htonl('1234') == *(PDWORD)"4321".
Wow, I just read what I posted and realized how stupid it sounds before I even read your replies :o. I must have been thinking htonl('W2XP') == htonl(*(DWORD*)"PX2W").
[edit] /me hates [ quote ] !!