Page 1 of 1

Posted: Mon Mar 24, 2003 11:38 am
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}

Posted: Mon Mar 24, 2003 8:42 pm
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

Posted: Mon Mar 24, 2003 9:45 pm
by BackupUser
Restored from previous forum. Originally posted by fred.

Was a bug. Fixed for next version.

Fred - AlphaSND