I read yes. But I did not find the solution to this problem with inetinit ().
So I'm asking. I am grateful if you could give me a solution to Read Local IP. Thanks, Ale Viktor Szakáts wrote: > > Do you read the asnwers? > > On 2010 May 30, at 21:40, Ale SB wrote: > >> >> hbrtl.lib(hbsocket.obj) : error LNK2019: external symbol >> __imp__wsaio...@36 >> unresolved referred to in the function _hb_socketGetIFaces >> >> Function to return the machine's local IP. >> >> This function normally in previous versions. >> >> function Ip_Local() //==> IP ==> xxx.xxx.xxx.xxx >> >> local cEstacao := netname(.f.) >> local aHosts := {} >> >> InetInit() >> aHosts := HB_InetGetHosts( cEstacao ) >> >> if aHosts == NIL >> aHosts := HB_InetGetAlias( cEstacao ) >> endif >> >> if Empty(aHosts) >> aHosts := hb_InetGetAlias( cEstacao ) >> endif >> InetCleanup() >> >> return ahosts[ 1 ] >> >> How to solve this problem? >> >> Thanks, Ale >> -- >> View this message in context: >> http://old.nabble.com/Error-InetInit%28%29.....-tp28724310p28724310.html >> Sent from the Harbour - Dev mailing list archive at Nabble.com. >> >> _______________________________________________ >> Harbour mailing list (attachment size limit: 40KB) >> Harbour@harbour-project.org >> http://lists.harbour-project.org/mailman/listinfo/harbour > > _______________________________________________ > Harbour mailing list (attachment size limit: 40KB) > Harbour@harbour-project.org > http://lists.harbour-project.org/mailman/listinfo/harbour > > -- View this message in context: http://old.nabble.com/Error-InetInit%28%29.....-tp28724310p28725452.html Sent from the Harbour - Dev mailing list archive at Nabble.com. _______________________________________________ Harbour mailing list (attachment size limit: 40KB) Harbour@harbour-project.org http://lists.harbour-project.org/mailman/listinfo/harbour