Problems with NET commands in PocketPC

Previous topic - Next topic

javiero

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?



mentalthink

Hi Javiero, perhaps you need to make a bucle.
I?m not be sure of this, pero bueno.

javiero

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.

Hemlos


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

WHILE TRUE
PRINT ip$,10,20
SHOWSCREEN
WEND


Does this work?

Bing ChatGpt is pretty smart :O

javiero

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)

Kitty Hello

What if you do a "SOCK_INIT" before that?

javiero

Quote from: Kitty Hello on 2009-Jun-18
What if you do a "SOCK_INIT" before that?

I was test it.

Fail at NETGETIP$()

:'(

Kitty Hello

OK, it's a shiny bug then. I'll fix it.

mentalthink

Hi Javiero, I think was I stayed wrog about I tell you for the bucle. Excuseme.

Un saludo, y hasta pronto.

javiero

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  ;)

javiero

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

Kitty Hello

uh-oh. It seems that "gethostbyname" API function blows up. I'll see how to fix that.