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}
Ohh er its all backwards o_O (ip address)
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tranquil.
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
Indeed windows allocates a longword for IPs 4x1Byte and that is written backwards.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}
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

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm