I have an MFC app. I need it to be able to ping a remote machine. I have the sample ping.c code from the MSDN but it uses winsock2. But, MFC uses winsock 1.1 (I believe). How do I get MFC to work with winsock2 or how to I get a ping function to work with winsock 1.1 (the ping sample uses WSASocket() which is not available under 1.1). Is there sample ping code that runs under winsock 1.1 or a way to convince MFC to use winsock 2?