GLBasic forum

Main forum => GLBasic - en => Topic started by: javiero on 2009-Jun-16

Title: Problems with NET commands in PocketPC
Post by: javiero on 2009-Jun-16
Hi

I make a simple test with this code:

-------------------------------
ip$ = NETGETIP$()

PRINT ip$,10,10
SHOWSCREEN
MOUSEWAIT
--------------------------------

In windows work very well, but in a Pocketpc (with 3g) and other pocketpc (with wifi) do not work.

At run, the program ends inesperately

Any idea?


Title: Re: Problems with NET commands in PocketPC
Post by: mentalthink on 2009-Jun-17
Hi Javiero, perhaps you need to make a bucle.
I?m not be sure of this, pero bueno.
Title: Re: Problems with NET commands in PocketPC
Post by: javiero on 2009-Jun-17
Quote from: mentalthink on 2009-Jun-17
Hi Javiero, perhaps you need to make a bucle.
I?m not be sure of this, pero bueno.


Hi mentalthink.

What is the objetive for make a bucle?

The program when run the instruction  "ip$= NETGETIP$()" end inesperately.

I mind that launch a exception and the program stop.

Excuseme my very bad english please.
Title: Re: Problems with NET commands in PocketPC
Post by: Hemlos on 2009-Jun-17

Code (glbasic) Select
LIMITFPS 10
ip$ = NETGETIP$()
PRINT "NETGETIP$() Loaded",10,10
SHOWSCREEN

WHILE TRUE
PRINT ip$,10,20
SHOWSCREEN
WEND


Does this work?

Title: Re: Problems with NET commands in PocketPC
Post by: javiero on 2009-Jun-18
Quote from: Hemlos on 2009-Jun-17

Code (glbasic) Select
LIMITFPS 10
ip$ = NETGETIP$()
PRINT "NETGETIP$() Loaded",10,10
SHOWSCREEN

WHILE TRUE
PRINT ip$,10,20
SHOWSCREEN
WEND


Does this work?



Hi.

No. Not work.

When the program begin, ends inesperately without message.

Was test in 3 wince pdas differents.

- HP IPAQ 4700  (with wifi internet conection)
- HTC TOUCH (with gprs internet conection)
- HTC Diamond (with grps and wifi conection)

In both cases the pda conect with internet perfect (then must be a ip valid)
Title: Re: Problems with NET commands in PocketPC
Post by: Kitty Hello on 2009-Jun-18
What if you do a "SOCK_INIT" before that?
Title: Re: Problems with NET commands in PocketPC
Post by: javiero on 2009-Jun-18
Quote from: Kitty Hello on 2009-Jun-18
What if you do a "SOCK_INIT" before that?

I was test it.

Fail at NETGETIP$()

:'(
Title: Re: Problems with NET commands in PocketPC
Post by: Kitty Hello on 2009-Jun-19
OK, it's a shiny bug then. I'll fix it.
Title: Re: Problems with NET commands in PocketPC
Post by: mentalthink on 2009-Jun-19
Hi Javiero, I think was I stayed wrog about I tell you for the bucle. Excuseme.

Un saludo, y hasta pronto.
Title: Re: Problems with NET commands in PocketPC
Post by: javiero on 2009-Jun-19
Quote from: mentalthink on 2009-Jun-19
Hi Javiero, I think was I stayed wrog about I tell you for the bucle. Excuseme.

Un saludo, y hasta pronto.

Don't worry  ;)
Title: Re: Problems with NET commands in PocketPC
Post by: javiero on 2009-Jun-19
Quote from: Kitty Hello on 2009-Jun-19
OK, it's a shiny bug then. I'll fix it.

Yes please  :nw:

I stay development a gps application for wince, and need comunicate the pda with a server. I need a way for transmit the position and receive orders.

Many thanks. ;)
Title: Re: Problems with NET commands in PocketPC
Post by: Kitty Hello on 2009-Jun-22
uh-oh. It seems that "gethostbyname" API function blows up. I'll see how to fix that.