• Welcome to Valhalla Legends Archive.
 

War3X

Started by ______, July 01, 2003, 07:21 AM

Previous topic - Next topic

______

the new warcraft 3 frozen throne product id is
PX3W

Soul Taker

This has been known for some time thanks to /stats =P

DarkMinion

Wow...I would've never known

By the way...

(DWORD) 'W3XP' is more correct

UserLoser

Or a string, PX3W works too ;D

DarkMinion

Not unless you're using VB, in C++ a string would cause ipban :P

Camel

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"

Eibro

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'
Eibro of Yeti Lovers.

Camel

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. :)

Skywing

#8
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".

Camel

#9
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]
* Camel  hates [ quote ] !!