Fail to resolve a name when calling ConnMgrEstablishConnectionSync()

Posted by Rodriguez on Stack Overflow See other posts from Stack Overflow or by Rodriguez
Published on 2010-06-01T16:20:30Z Indexed on 2010/06/01 16:23 UTC
Read the original article Hit count: 154

Hi Guys, I'm trying to setup a GPRS connection with ConnMgrEstablishConnectionSync(), so far so good, the connection is established and if I try to connect to an IP address, everything works fine.

Alas, when I try to resolve a name:

ConnMgrEstablishConnectionSync();
...
gethostbyname("www.google.com");

The result is always an error: 0x00002af9 (host not found). Therefor I'm not able to resolve any name, but if I try to open a browser, the browser is able to resolve everything. Am I doing something wrong? Thanx for your help.

© Stack Overflow or respective owner

Related posts about windows-mobile

Related posts about connection-manager