Problem with inet_ntoa



Hi,

I'm developing an ActiveX DLL in VB6 which use the winsock API.
Now, when I accept a TCP connection from a remote host and call
getsockname and getpeername to get the remote host IP, the
inet_ntoa :

m_strLocalIP = StringFromPointer(inet_ntoa(udtSockAddr.sin_addr))

returns a number (like 65233254) instead a valid IP String.

This problem not occur if I use the class directly in a project
instead inside a DLL Activex.

Someone can help me?

Thanks in advance.
Daniele.

.