Greetings, I'm using Visual C++ 2010 express from microsoft and am trying to write a dll library for use with another project to send ping requests.
My problem is that
unsignedlong ipaddr = inet_addr("127.0.0.1")
returns 16777343, which is 18.104.22.168 and not 127.0.0.1
I tried this with different addresses and the issue is the same. I'm running x64 Windows 7 professional under a virtual machine if that has something to do with it. Any help is highly appreciated!