Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>The best, well-supported way to access the WinHTTP 5.1 APIs from C++ is via the Windows SDK (new name for the Platform SDK) and using those APIs you mentioned.</p> <p>The article you linked to suggests that installing the SDK is difficult - the good news is its an old article from 2006 and things are much easier these days. Just do the following:</p> <ol> <li>Download the latest SDK ISO image from <a href="http://www.microsoft.com/downloads/details.aspx?FamilyId=F26B1AA4-741A-433A-9BE5-FA919850BDBF&amp;displaylang=en" rel="noreferrer">here</a> - don't worry about it being called the "SDK for Windows Server 2008", it's also for Server 2003, XP and Vista. </li> <li>Burn to DVD</li> <li>Run the setup.exe on the DVD, select full installation and let it run for 1/2 hour or so.</li> <li>After installation, goto Start -> Programs -> Microsoft Windows SDK -> Visual Studio Registration -> <strong>Integrate Windows SDK with Visual Studio 2005</strong></li> </ol> <p>You may even be prompted to run the integration tool during installation - it's been a while since I installed it so I can't recall exactly.</p> <p>The Visual C++ compiler will then be able to find winhttp.h and winhttp.lib in the appropriate folders.</p> <p><strong>Update</strong> As usual things are never as simple as they should be. EMK has pointed out that the Windows SDK Configuration Tool doesn't work properly with Visual Studio 2008 (any version) and crashes after installing Visual Studio 2008 SP1. Details and workarounds are reported <a href="http://social.msdn.microsoft.com/forums/en-US/windowssdk/thread/62b7d1a6-5210-4f1e-8fc5-a06193edce22/" rel="noreferrer">here</a> and <a href="http://social.msdn.microsoft.com/Forums/en-US/windowssdk/thread/7d0eafe5-477b-40cc-85a1-cd6296c6b745" rel="noreferrer">here</a>. </p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload