Ohh er its all backwards o_O (ip address)

Everything else that doesn't fall into one of the other PB categories.
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by cYanide.

Hi, ive just noticed dureing some testing of my game, that my purebasic launcher seems to write out the ip address backwards, im sure it didnt before i updated to the latest pb ver.

Anyhow im using the below code, nothing amazing.
WriteStringN(GetGadgetText(3));ip

if i entered a ip of 127.0.0.1 into the launcher ip gadget
it comes out written to a file like 1.0.0.127...

Any ideas?

{cYanide}
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by tranquil.
Originally posted by cYanide

Hi, ive just noticed dureing some testing of my game, that my purebasic launcher seems to write out the ip address backwards, im sure it didnt before i updated to the latest pb ver.

Anyhow im using the below code, nothing amazing.
WriteStringN(GetGadgetText(3));ip

if i entered a ip of 127.0.0.1 into the launcher ip gadget
it comes out written to a file like 1.0.0.127...

Any ideas?

{cYanide}
Indeed windows allocates a longword for IPs 4x1Byte and that is written backwards.

Mike

Tranquilizer/ Secretly!
http://www.secretly.de
Registred PureBasic User
System: Windows 2000 Server, 512 MB Ram, GeForce4200 TI 128 MB DDR, Hercules Theater 6.1 DTS Sound
System 2: Mobile Pentium 4 2.4GHz 512 MB DDR GeForce4 420-32, Windows XP Home
BackupUser
PureBasic Guru
PureBasic Guru
Posts: 16777133
Joined: Tue Apr 22, 2003 7:42 pm

Post by BackupUser »

Restored from previous forum. Originally posted by fred.

Was a bug. Fixed for next version.

Fred - AlphaSND
Post Reply