You need to add wininet.lib to the link section of the project properties