Daniel Skorka wrote:
res = connect(s, ptr->ai_addr, (int)ptr->ai_addrlen);
if(res)
Why not use InternetConnect? If the connection needs to be made through a http:// proxy, connect() may not work, but InternetConnect should handle that case.
Mike